note 73045 added to function.session-destroy
| From: | Colin at osu1 dot php dot net | Date: | Wed, 07 Feb 2007 09:52:15 +0000 |
| Subject: | note 73045 added to function.session-destroy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123036@lists.php.net to get a copy of this message | ||
Note that when you are using a custom session handler, session_destroy will cause a fatal error if
you have set the session destroy function used by session_set_save_handler to private.
Example:
Fatal error: Call to private method Session::sessDestroy()
where sessDestroy was the function I specified in the 5th parameter of session_set_save_handler.
Even though it isn't all that desirable, the simple solution is to set sessDestroy to public.
----
Server IP: 64.71.164.2
Probable Submitter: 71.234.177.249
----
Manual Page -- http://www.php.net/manual/en/function.session-destroy.php
Edit -- https://master.php.net/note/edit/73045
Del: integrated -- https://master.php.net/note/delete/73045/integrated
Del: useless -- https://master.php.net/note/delete/73045/useless
Del: bad code -- https://master.php.net/note/delete/73045/bad+code
Del: spam -- https://master.php.net/note/delete/73045/spam
Del: non-english -- https://master.php.net/note/delete/73045/non-english
Del: in docs -- https://master.php.net/note/delete/73045/in+docs
Del: other reasons-- https://master.php.net/note/delete/73045
Reject -- https://master.php.net/note/reject/73045
Search -- https://master.php.net/manage/user-notes.php