Page 1 of 1
Urgent---Change session_id
Posted: Sat Dec 04, 2004 1:51 am
by renu
Hi
I have changed session_id to a new one.on that page it gets change.but as i move to another page this id is not new one.
In short i want to change session_id.
Plz help me out.
Thanks
Posted: Sat Dec 04, 2004 2:48 am
by mudkicker
from manual:
When defining your own unique session ID instead of letting your browser do the job, you should do this before starting the session
e.g.
$id = 143445254;
session_id($id);
session_start();
print session_id();
// prints 143445254
//instead of the 32-bit string //generated by
//the computer/browser
//ofcourse it is better if you'll //generate your own session ID using md5
Posted: Mon Dec 06, 2004 3:33 am
by renu
hi
that can be a solution.but now this stage i want to change the session id.can someone help me out
thanks
Posted: Mon Dec 06, 2004 8:55 am
by timvw
session_regenerate_id();
Posted: Mon Dec 06, 2004 9:48 pm
by renu
But that just works for php version 4.2. But we are using version less than that.so wht should i do