mic2100
09-12-2007, 04:49 PM
Hi,
I have been puzzling over this for a while now and i am not sure what is causing this or how to fix it.
The problem is session variables, they keep get a new session id at random and i am not to sure how i can stop it.
Click here to read a problem i have alread found that is the same as mine. (http://www.webmasterworld.com/forum88/3265.htm)
I have at the top of each page...
ini_set("session.save_path", $_SERVER['DOCUMENT_ROOT']."/ses");
ini_set("session.gc_maxlifetime", "7200");
session_start();
i have even added...
session_id($_COOKIE['PHPSESSID']);
at the top of most pages so it hopfully stays on the same ID but this didn't work. So i am now fresh out of ideas, does anyone know any reason this may be doing this?
Thanks
I have been puzzling over this for a while now and i am not sure what is causing this or how to fix it.
The problem is session variables, they keep get a new session id at random and i am not to sure how i can stop it.
Click here to read a problem i have alread found that is the same as mine. (http://www.webmasterworld.com/forum88/3265.htm)
I have at the top of each page...
ini_set("session.save_path", $_SERVER['DOCUMENT_ROOT']."/ses");
ini_set("session.gc_maxlifetime", "7200");
session_start();
i have even added...
session_id($_COOKIE['PHPSESSID']);
at the top of most pages so it hopfully stays on the same ID but this didn't work. So i am now fresh out of ideas, does anyone know any reason this may be doing this?
Thanks