Page 1 of 1

Session ID Question

Posted: Fri Jul 11, 2003 4:03 am
by ILoveJackDaniels
I'm quite happy with the various session functions of PHP, but was wondering if it was possible to set the session id myself? I want to create session ids based in part upon the IP of the user for added security, but session_id() doesn't seem to allow me to do that. How do I use normal session functions in PHP but set my own session IDs?

Posted: Fri Jul 11, 2003 4:07 am
by redhair
Hope this helps.

http://php.net/manual/en/function.session-id.php

session_id -- Get and/or set the current session id.

Posted: Fri Jul 11, 2003 4:43 am
by ILoveJackDaniels
I feel like a tit now. I looked at that page earlier, and didn't see the damn bit about setting the id! From now on, when I RTFM, I'll do it carefully!