NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Back Button problem after log out HELP!

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-14-2004, 02:10 PM THREAD STARTER               #1 (permalink)
New Member
Join Date: May 2004
Posts: 2
3rulzs is an unknown quantity at this point
 



Back Button problem after log out HELP!


Excuse me if this has been asked before. I have a website that requires you to log on with a user id. The user clicks on the log out button it logs the user out fine. The problem I'm having is the user can click the back button and it returns them to the previous page. I know this is how it is suppose to work because I'm not clearing the cache on the browser. If I use this
????: NamePros.com http://www.namepros.com/programming/30531-back-button-problem-after-log-out.html

Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
if not Session("UserID") <> "" then
Response.Redirect("Login.asp")
end if

it works perfect for the log out process but it expires my webpages within the site which I don't want. In my perfect world I would like to login to the website browse where ever in the website clicking on links, using the back and forward buttons whenever I like without the page expiring except when I click the logout button, then I click the back button it sends me to a page that make me log back in instead of sending me back to the previous page. Some websites that have my example are

http://www.discovercard.com
http://www.citi.com

Hopefully thats clear as mud!
Please post a some example code if you know a fix.

Thanks
3rulzs is offline  
Old 05-15-2004, 07:34 PM   #2 (permalink)
Account Suspended
Join Date: May 2004
Location: usa
Posts: 103
pinkfluffybunny is an unknown quantity at this point
 



Everypage

Response.Expires = 0
Response.Expiresabsolute = Now() - 2
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
pinkfluffybunny is offline  
Old 05-17-2004, 07:55 AM THREAD STARTER               #3 (permalink)
New Member
Join Date: May 2004
Posts: 2
3rulzs is an unknown quantity at this point
 



Thanks for the example but it still expires the page when I navigate within the website with the back and forward buttons.
3rulzs is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 07:00 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger