PostNuke Help |
||
|---|---|---|
Previous |
Next |
|
set session variable
bool pnSessionSetVar(name, value);
pnSessionSetVar() sets a session-specific variable on the PostNuke system. If the variable does not exist then it is created.
The name of the session variable to set
The value to set the session variable with
This function returns true if the variable was set, and void if there was an internal API error whilst attempting to set the variable.
Session variables are not guaranteed to exist from one process run to the next. Internal housekeeping might remove sessions that have been inactive for long periods of time, so do not use session variables to store long-term information.
pnSessionGetVar(), pnSessionDelVar()
Previous |
Next |