As far as I know, you can't clear the browser cache. The browser cache resides with the client. PHP resides with the server. You can tell the cookie to expire, but that's about it. To delete the cookie, look at Example #2 - give it an expiration date in the past. http://us2.php.net/manual/en/function.setcookie.php On Mon, May 12, 2008 at 2:41 PM, Matthew Gonzales <matt323@xxxxxxx> wrote: > What function would I use to clear the browser cache. > > Matt G > > Matthew Gonzales > IT Professional Specialist > Enterprise Information Technology Services > University of Georgia > Email: matt323@xxxxxxx <mailto:matt323@xxxxxxx> > Phone: (706)542-9538 > > > Alf Stockton wrote: > > > 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. > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Jarrett Meyer, MBA Email: jarrettmeyer@xxxxxxxxx Web: JarrettMeyer.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php