[PHP] Re: $HTTP_SESSION_VARS still holds original values even after unset?

2004-04-04 Thread DvDmanDT
Umm.. Use $_SESSION for that, and session_unregister() for the unsetting with the old style code.. -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com Andy B [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] how would you empty all the contents of $HTTP_SESSION_VARS when

[PHP] Re: $HTTP_SESSION_VARS still holds original values even after unset?

2004-04-04 Thread Andy B
Umm.. Use $_SESSION for that.. wish i could but it wont work for the server that its going to run onthey still use php4.0.4pl1 believe it or not -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: $HTTP_SESSION_VARS still holds original values even after unset?

2004-04-04 Thread DvDmanDT
Use the session_* functions then.. -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com Andy B [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Umm.. Use $_SESSION for that.. wish i could but it wont work for the server that its going to run onthey still use

[PHP] Re: $HTTP_SESSION_VARS still holds original values even after unset?

2004-04-04 Thread Andy B
Use the session_* functions then.. still does nothing at all or it does the same as session_destroy. and that forces a user back to the login screen right in the middle of an sql insert/update -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: $HTTP_SESSION_VARS still holds original values even after unset?

2004-04-04 Thread John Holmes
Andy B wrote: Use the session_* functions then.. still does nothing at all or it does the same as session_destroy. and that forces a user back to the login screen right in the middle of an sql insert/update Okay, start showing some code so we can see wtf is going on. Constantly posting back

[PHP] Re: $HTTP_SESSION_VARS still holds original values even after unset?

2004-04-04 Thread Andy B
Okay, start showing some code so we can see wtf is going on. Constantly posting back nope, doesn't work is just going to have us grasping at straws again and again. Is register globals on or off? register_globals=off here is the code that gives me problems: files are attached (if allowed) let

Re: [PHP] Re: $HTTP_SESSION_VARS still holds original values even after unset?

2004-04-04 Thread trlists
On 4 Apr 2004 Andy B wrote: the next time i hit the add guestbook listing from the main screen, fill out the form with different values and submit it all the $HTTP_SESSION_VARS have the same values as the last add sequence... There are two problems there. First, your session data is not

[PHP] Re: $HTTP_SESSION_VARS still holds original values even after unset?

2004-04-04 Thread Andy B
There are two problems there. First, your session data is not getting cleared. Second, it is not getting reset with the new values. For the former, in guestbook_save.php you can simply do a session_unset (if you really want to clear all of them). However this does not handle an abnormals

Re: [PHP] Re: $HTTP_SESSION_VARS still holds original values even after unset?

2004-04-04 Thread Curt Zirzow
* Thus wrote Andy B ([EMAIL PROTECTED]): ?php session_start(); $_SESSION['date']=$date; $HTTP_SESSION_VARS['name']=$name; $HTTP_SESSION_VARS['email']=$email; $HTTP_SESSION_VARS['website']=$website; $HTTP_SESSION_VARS['referred']=$referred; $HTTP_SESSION_VARS['comments']=$comments; You

[PHP] Re: HTTP_SESSION_VARS != Work

2001-12-01 Thread Fred
It looks like it is working as expected. You must note two things. First, session variables are updated to new values only when you explicitly call session_register or when the script ends. When you call session_register, the session variable will have the value that the global variable had at

Re: [PHP] Re: HTTP_SESSION_VARS

2001-08-02 Thread Jon Yaggie
: Richard Lynch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 02, 2001 3:17 AM Subject: [PHP] Re: HTTP_SESSION_VARS while (list ($key, $val) = each ($HTTP_session_VARS)) { echo $key = $valbr; } i get the error - Warning: Variable passed to each() is not an array or object

[PHP] Re: HTTP_SESSION_VARS

2001-08-01 Thread Richard Lynch
while (list ($key, $val) = each ($HTTP_session_VARS)) { echo $key = $valbr; } i get the error - Warning: Variable passed to each() is not an array or object in /var/www/html/adult/func.php on line 5 and well it looks liek an array to me . . is there soemthing i can do to make this work?