Sessions just not working...
| From: | Norman Cates | Date: | Fri, 15 Feb 2002 00:34:19 +0000 |
| Subject: | Sessions just not working... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-84850@lists.php.net to get a copy of this message | ||
I cannot get session information to work under any circumstances....
I think I've read every single comment on
http://www.php.net/manual/en/ref.session.php
session_start();
Function setup() {
global $HTTP_SESSION_VARS;
if (!(isset($HTTP_SESSION_VARS["notesType"]))){
$HTTP_SESSION_VARS["notesType"]="DAILY";
}
if (isset($HTTP_GET_VARS["notesTypeFilter"])){
$HTTP_SESSION_VARS["notesType"]=$HTTP_GET_VARS["notesTypeFilter"];
}
} // End setup Function
//Call the page with page.php?notesTypeFilter=ALL
setup();
//$HTTP_SESSION_VARS["notesType"] returns all
//Call the page with page.php
//Read $HTTP_SESSION_VARS. It's empty. It should return ALL
I do have register_global set. And I do have track_vars set.
But even reading the comments on the above page, nothing will work. It will
not persist with the session variable...
Am I doing something wrong?
Norman