session_set_save_handler
bool session_set_save_handler(string open, string close, string read, string write, string destroy, string gc)
open | Session init function |
close | Session shutdown function |
read | Session read function |
write | Session write function |
destroy | Destroy session function |
gc | Garbage collection function |
Sets handlers for custom session functions.
Returns:
TRUE on success; FALSE on error
Description:
This function takes six arguments that describe the functions used when creating your own session-handling functions. Each function can have any name, but the names must be passed in the correct order. In addition, each function must return the correct information. Using this function, it’s possible to write any session handler ...
Get PHP Functions Essential Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.