Created
October 3, 2017 15:18
-
-
Save loranger/f57ce97e1a60d7d106835f07918f85f9 to your computer and use it in GitHub Desktop.
Session handler issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function session_handler_open($save_path, $session_name) { | |
return TRUE; | |
} | |
function session_handler_close() { | |
return TRUE; | |
} | |
function session_handler_store($key, $data) { | |
return TRUE; | |
} | |
function session_handler_fetch($key) { | |
return []; | |
} | |
function session_handler_delete($key) { | |
return TRUE; | |
} | |
function session_handler_gc($timeout) { | |
return TRUE; | |
} | |
session_set_save_handler('session_handler_open', 'session_handler_close', 'session_handler_fetch', 'session_handler_store', 'session_handler_delete', 'session_handler_gc'); | |
session_start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment