RE: [PHP] Sessions just not working...
| From: | Rick Emery | Date: | Fri, 15 Feb 2002 14:27:01 +0000 |
| Subject: | RE: [PHP] Sessions just not working... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-84905@lists.php.net to get a copy of this message | ||
Did you register each variable individually? Did you have a session_start()
as the first line of each page?
-----Original Message-----
From: Norman Cates [mailto:norman@wetafx.co.nz]
Sent: Thursday, February 14, 2002 6:34 PM
To: php-general@lists.php.net
Subject: [PHP] Sessions just not working...
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php