Page 1 of 1

php session sharing

Posted: Thu Jun 09, 2005 5:12 am
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

Posted: Thu Jun 09, 2005 5:17 am
by malcolmboston
not an answer but why on earth would you want this?

Posted: Thu Jun 09, 2005 5:48 am
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.

Posted: Thu Jun 09, 2005 6:15 am
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

Posted: Thu Jun 09, 2005 6:22 am
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.

Posted: Thu Jun 09, 2005 9:15 am
by lucianodenti@yahoo.it
Thank you for help Syranide !!!