Re: [PATCH] Modifications for ext/session/
| From: | Zeev Suraski | Date: | Wed, 27 Apr 2005 12:58:26 +0000 |
| Subject: | Re: [PATCH] Modifications for ext/session/ | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16109@lists.php.net to get a copy of this message | ||
At 11:02 26/04/2005, Sascha Schumann wrote:
They are not helpful for various reasons. e.g. if you need
to ask whether a session was started, your architecture is
broken (a central place needs to manage sessions; that single
place must know whether a session has been started).
Why? And how can it know whether a session was started if it can't check whether it was started?
Also, the concept of session_id_exists is fundamentally
broken (think of atomic file creation). That is why there is
no such function.
That's true - although we could have some sort of test&set functionality if we wanted to. Not sure if it's that useful though.
Zeev