September 2001
Intermediate to advanced
768 pages
32h 45m
English
int session_destroy(void)
Ends session.
Returns:
TRUE on success; FALSE on failure
Description:
Ends a session and removes any session data associated with that session.
Version:
Existing since version 4.0
Example:
session_start();
if (!$counter) session_register("counter");
$file = session_save_path()."/sess_".session_id();
readfile($file);
session_destroy();
// this will cause an error to show session info gone
readfile($file);
|
Read now
Unlock full access