- Home /
Unity WWWForm causes php script to create new session?
I am using a WWWForm to pass in a url to a php file with a session_start() at the top. The php scripts on the server run fine when i test them there and maintain a single session ID, but when i try to call the scripts from Unity it keeps creating a new session ID on the server and i lose the data between scripts.
Would like some help or pointers, thanks.
Comment
Answer by Zetya96 · Dec 06, 2017 at 07:52 AM
Hi!
I think thats because unity does not save cookies. You have to store the sessionid on the client manually, and always send it to the script, in the URL, or POST.