User Tools

Site Tools


uphp:functions:session_destroy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

uphp:functions:session_destroy [2017/05/13 12:08]
admin created
uphp:functions:session_destroy [2021/09/13 05:57]
Line 1: Line 1:
-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.txt · Last modified: 2021/09/13 05:57 (external edit)