note 90968 added to function.session-start
| From: | kavih7 at yahoo dot com | Date: | Mon, 18 May 2009 23:52:36 +0000 |
| Subject: | note 90968 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-155706@lists.php.net to get a copy of this message | ||
I ran into a problem that has a solution that may not be quite intuitive to people (well, atleast it
wasn't for me). I had one script that called session_start() and that script would run for an
indefinite amount of time. I had a second script that would also call session_start(), but would
only run for a few seconds each time it is called.
Here is where the problem occurs: Once session_start is called from the long living script, no other
script can call session_start until that long running script calls session_commit()
(session_write_close()) or ends.
In any case, this may have seem very intuitive to others, but having an abstracted system in place,
I never see the session management at the script level, so it was hard to figure out what was
locking any other requests.
Hope this helps others.
----
Server IP: 209.41.74.194
Probable Submitter: 209.63.134.99
----
Manual Page -- http://www.php.net/manual/en/function.session-start.php
Edit -- https://master.php.net/note/edit/90968
Del: integrated -- https://master.php.net/note/delete/90968/integrated
Del: useless -- https://master.php.net/note/delete/90968/useless
Del: bad code -- https://master.php.net/note/delete/90968/bad+code
Del: spam -- https://master.php.net/note/delete/90968/spam
Del: non-english -- https://master.php.net/note/delete/90968/non-english
Del: in docs -- https://master.php.net/note/delete/90968/in+docs
Del: other reasons-- https://master.php.net/note/delete/90968
Reject -- https://master.php.net/note/reject/90968
Search -- https://master.php.net/manage/user-notes.php