note 128184 added to class.sessionhandler
| From: | tuncdan dot ozdemir dot peng at gmail dot com | Date: | Fri, 03 Feb 2023 19:57:51 +0000 |
| Subject: | note 128184 added to class.sessionhandler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220140@lists.php.net to get a copy of this message | ||
Those who are planning to implement your own SessionHandler, let's say using a Database system,
please make sure your 'create_sid' method creates a new record in your database with empty
string '' as your 'data' using the new session ID created, otherwise when
'read' method is called (which is always called no matter if it is a brand new session or
not), you will get an error because there is no record with that session ID yet. The funny part is
that the error you get will sound like PHP is trying open the session on your local drive (coming
from your .ini file).
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.158.213 (proxied: 24.138.6.76)
----
Manual Page -- https://php.net/manual/en/class.sessionhandler.php
Edit -- https://main.php.net/note/edit/128184
Del: integrated -- https://main.php.net/note/delete/128184/integrated
Del: useless -- https://main.php.net/note/delete/128184/useless
Del: bad code -- https://main.php.net/note/delete/128184/bad+code
Del: spam -- https://main.php.net/note/delete/128184/spam
Del: non-english -- https://main.php.net/note/delete/128184/non-english
Del: in docs -- https://main.php.net/note/delete/128184/in+docs
Del: other reasons-- https://main.php.net/note/delete/128184
Reject -- https://main.php.net/note/reject/128184
Search -- https://main.php.net/manage/user-notes.php