trying to port web app starter from PHP
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
:sig
|
||||
String session_start(String session_name = "uce-session")
|
||||
|
||||
:params
|
||||
session_name : optional name of the session cookie, defaults to "uce-session"
|
||||
return value : the current session ID
|
||||
|
||||
:desc
|
||||
Starts session or connects to existing session. This function sets a cookie with the name contained in 'session_name' if it does not exist and fills that cookie with a new unique session ID. It then loads the session data for that session ID. Afterwards, the following fields are populated in the 'context' variable:
|
||||
|
||||
context.session_id : the current session ID
|
||||
|
||||
context.session_name : the current session cookie name
|
||||
|
||||
context.session : the current session data. The session data is automatically saved after a request completes.
|
||||
|
||||
:see
|
||||
>session
|
||||
Reference in New Issue
Block a user