Currently, I'm doing something like this:
Code: Select all
session_start();
if(isset($_SESSION)) {
$this->session =& $_SESSION;
} else {
$this->session = array();
}if anyone could shed some light on this that would be great. thanks.
[edit]
Let me rephrase that. I am wanting to determine if session-support has been enabled in the php config file or not on the fly.