Home  |  Linux  | Mysql  | PHP  | XML
From:Alf Stockton Date:Mon May 12 08:16:20 2008
Subject:Re: Sessions Question!
Matthew Gonzales wrote:
> So I have user restricted area to my website. The login works great with 
> the session data being passed. I also have a logout button. I notice 
> that when I logout I can still click the back button on the browser and 
> you can see the previous users restricted data. How do I prevent this 
> from happening. Below is the Script I am using to destroy the session data.
> 
> //Unset all of the global variables!
> session_unset;
> 
> //Destroy the session
> session_destroy();
> 
I would suggest also clearing the browsers cache.


-- 
Regards,
Alf Stockton		www.stockton.co.za

A is for Apple.
		-- Hester Pryne
My email disclaimer is available at www.stockton.co.za/disclaimer.html
Navigate in group php.windows at sever news.php.net
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants