Re: sessions
| From: | Tyler Durdin | Date: | Fri, 26 Jul 2002 18:00:22 +0000 |
| Subject: | Re: sessions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-109838@lists.php.net to get a copy of this message | ||
I don't know. Tell me where I would find it and I'll look : -)
Sorry, pretty new to all of this.
Do you have register globals off? Jim Grill Support Web-1 Hosting http://www.web-1hosting.net ----- Original Message ----- From: "Tyler Durdin" <linuxgeek23@hotmail.com> To: <php-general@lists.php.net> Sent: Friday, July 26, 2002 12:33 PM Subject: [PHP] sessions I used this logout page using sessions a while ago and it used to work great, but now it doesn't work. The only thing i have changed is my version of php. Can someone take a look and see what i have to change? <?_________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspxsession_start();$old_user = $valid_user; $result = session_unregister("valid_user"); session_destroy(); ?> then a little further down i have this.... <php? if (!empty($old_user)) {if ($result) { echo "Logged out.<br>"; } else { echo "Could not log you out.<br>"; }} else {echo "You have not logged in; therefore, you cannot logout.<br>";} ?> It seems to log me out still, but it always gives me the "you have not logged in; therefor, you cannot logout" message. i also checked it with a script to see if my original sessions were actually registering and it seemed that they were. i am stumped. Any ideas would be greatly appreciated. Thanks. _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php