php session sharing

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
lucianodenti@yahoo.it

php session sharing

Post by lucianodenti@yahoo.it »

I need a session sharing mechanism (same ID for 2 or more users) without session overlapping problems.
Any idea ?
Thank you
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

not an answer but why on earth would you want this?
Syranide
Forum Contributor
Posts: 281
Joined: Fri May 20, 2005 3:16 pm
Location: Sweden

Post by Syranide »

without session overlapping problems?
say what? please elaborate

you can resume previous session by telling which ID you want to "resume", look at the API for session.
lucianodenti@yahoo.it

Post by lucianodenti@yahoo.it »

I known php built-in session handler, but I don't knowk if I can resume a session, make variables modifications and serialize this session without errors due to a another "session resume" started at the same time from another user... does "php built-in session handler" prevent overplapping problems ?
Thank You
Syranide
Forum Contributor
Posts: 281
Joined: Fri May 20, 2005 3:16 pm
Location: Sweden

Post by Syranide »

sessions block each other, just like semaphores, if the session is in use, everyone else has to stand in line for that session.
lucianodenti@yahoo.it

Post by lucianodenti@yahoo.it »

Thank you for help Syranide !!!
Post Reply