UNB Components Code Reference

UnbSession::EnableSession method

Enables using a session.

public static function UnbSession::EnableSession ($sessionId = null);

Parameters

sessionId  –  optional, default: null
(string) PHP session ID, if not found in the request variables. Useful for non-browser environments.

Remarks

This method is called at the beginning of an application to start using a session. This enables access to session variables and allows storing temporary data over multiple web page requests.

Exceptions thrown

InvalidArgumentException On an invalid SessionArrayVar value.

Member of class: UnbSession

Implementation file: session.class.php, line 148

© 2010 Yves Goergen. UNB Components Homepage. Reference generated on 2010-03-07.