User Tools

Site Tools


uphp:functions:session_destroy

This is an old revision of the document!


session_destroy()

This is only applicable for HTTP initiated scripts. An internal $_SESSION array is available to all HTTP scripts to allow for persistent variables to be shared between scripts. This array is associated with the script based on a cookie created at login.

session_destroy() clears the array. This would clear specific variables like logged_in, an integer indicating whether the user is logged in, so a page in WattmonOS (such as the home page) is called after running this function, you would be redirected to the login page once again.

uphp/functions/session_destroy.1494677280.txt.gz · Last modified: 2021/09/13 05:56 (external edit)