note 73045 deleted from function.session-destroy by peehaa
| From: | peehaa@php.net | Date: | Sun, 28 Apr 2019 10:30:38 +0000 |
| Subject: | note 73045 deleted from function.session-destroy by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210793@lists.php.net to get a copy of this message | ||
Note Submitter: Colin
----
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.