Description
user_logout removes the user authentication information from an existing session.
Parameters
None.
Return Values
None.
Notes
Regenerates the session id. Preserves other session data if it exists.
Examples
$_SESSION['special'] = 'data'; // log out the user user_logout(); echo $_SESSION['special']; // will still output data as session data is preserved.
Dependencies
- monju.lib.php
- session.lib.php
If you notice a mistake in the documentation, instead file a bug report in the issue tracker. Instead use this to add tips and tricks associated with the functions. You can use tags like to keep your comments clear.