Goto:
4C Home
|
4C Docs
|
req4c Docs
|
req4c Function List
req4c_open_session()
req4c_open_session()
Purpose:
-
req4c_open_session() opens a req4c session
and sets it as the current session
Usage:
-
-
$session = req4c_open_session([<sessionid>]>);
Arguments:
-
<sessionid> - A sessionid string that identifies an existing req4c session.
This is an optional argument.
Returns:
-
false - Error
-
$session - A new session resource
Where Used:
-
req4c_open_session() can be called from anywhere.
Example:
-
Description:
-
req4c_open_session() opens a req4c session and sets it as the current session.
If you pass in a sessionid string, then req4c_open_session(),
opens that session.
If you do not pass in a sessionid string, then req4c_open_session() looks
in _COOKIES['req4c_sessionid'] and uses that value for the sessionid if
it exists.
req4c_open_session() verifies that the sessionid is valid and
has not expired.
If the session is opened successfully, it becomes the current session
and the sessionid of this session is stored in the
variable $_REQ4C['sessionid']
All session variables are also initialized into the $_REQ4C_SESSION
array.
Bugs/Features/Comments:
-
-
req4c_open_session() requires a round trip to the 4creqd process.
-
req4c_open_session() clears the current message list
See Also:
-
req4c_create_session()
-
req4c_open_session()
-
req4c_use_session()
-
req4c_close_session()
-
req4c_delete_session()
-
req4c_verify_session()
-
req4c_get_sessionid()
Back to Top