Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 22nd, 2011, 11:51 AM
Registered User
Join Date: Jan 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default back button problem

im creating a login/logout page for a web based app.im using session variable i.e Session("uname")=request("user") in my validatelogin asp page.
when im logging out i have clear the session variable i was using.the code goes something like this
I have also mentioned the below code in my all three pages i.e login,action & logout
Response.Addheader "pragma","no-cache"

when i press the back button in my browser window it redirects me to all the initial pages i accessed.
Plz help me as how i can make the back button stop when the user session gets over.
Old January 28th, 2011, 08:25 PM
J_P J_P is offline
Authorized User
Join Date: May 2009
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post

the back button triggers a client-side action or event. ASP is server side code.

most modern browsers are not affected by the cache controls

the only suggestion is to clear the browser history with client side code. this can be found in discussions found here


Similar Threads
Thread Thread Starter Forum Replies Last Post
back button problem k.manisha ASP.NET 1.0 and 1.1 Professional 4 October 30th, 2006 04:32 AM
Problem with the Back button aldwinenriquez Classic ASP Basics 2 June 24th, 2005 01:53 AM
problem with back button. gurucharan_cs Javascript 1 April 6th, 2005 07:12 AM
Back Button Problem someshtrivedi General .NET 0 February 7th, 2005 05:43 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.