Session ID Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
ILoveJackDaniels
Forum Commoner
Posts: 43
Joined: Mon May 20, 2002 8:18 am
Location: Brighton, UK

Session ID Question

Post 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?
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Post by redhair »

Hope this helps.

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

session_id -- Get and/or set the current session id.
User avatar
ILoveJackDaniels
Forum Commoner
Posts: 43
Joined: Mon May 20, 2002 8:18 am
Location: Brighton, UK

Post 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!
Post Reply