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:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 6:34 PM
To: [EMAIL PROTECTED]
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to