User Tools

Site Tools


uphp:functions:session_is_new

Differences

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

Link to this comparison view

Next revision
Previous revision
uphp:functions:session_is_new [2017/05/13 12:10]
admin created
uphp:functions:session_is_new [2021/09/13 05:57] (current)
Line 1: Line 1:
-int session_is_new()+======session_is_new======
  
-This is supposed to return a non-zero value if the session has just been created (first time the page is loaded from a browser session).  Not sure if this works, needs to be tested...+<badge>WMPRO, WMMINI >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> 
 + 
 +Check if a session was just initiated 
 + 
 +====Description==== 
 + 
 +<well size="sm"><html> 
 +<span style="font-size:125%;color:green">int 
 +<span style="color:black">session_is_new ( ) 
 +</html></well> 
 + 
 +This is only applicable for HTTP initiated scripts. 
 + 
 +This is supposed to return a non-zero value if the session has just been created (first time the page is loaded from a browser session).  However, at the time of this writing we're not sure if this works, and it needs to be tested ... 
 + 
 +====Parameters==== 
 + 
 +None 
 + 
 +====Return Values==== 
 + 
 +Non-zero if the session was just initiated 
 + 
 +====See Also==== 
 + 
 +[[session_destroy()]] - Clear the current session's data 
 + 
 +[[session_start()]] - Initiate a new session and send the cookie data for it
  
-It would return 0 if not new 
uphp/functions/session_is_new.1494677424.txt.gz · Last modified: 2021/09/13 05:56 (external edit)