Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 December 6th, 2004, 02:23 AM
Registered User
 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to tanveer23 Send a message via MSN to tanveer23 Send a message via Yahoo to tanveer23
Default back Button security Problem

I m working on a webapplication that shows secured data.after I sign out of the site, if I press the back button on the browser then the previous page is shown again.I want to avoid it.I want the browser to take me to the log in screen if I press the back button after logging Out. How to do it?


 
Old December 6th, 2004, 08:43 AM
Authorized User
 
Join Date: Nov 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well i faced the same problem but my case was easy so i found a way to empty all sessoins in cuding those that contains the connection string to the database. so whenever the user click on the back button he can see noting and if he clicks any button he would get an error page.
i know it is not the right way to do but i did not find any other solution.


thanks

Georges M. Kaddoum
 
Old December 15th, 2004, 12:16 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

A good way to do this is to set page expiration such that all pages expire immediately. This way, even when you hit "Back", the browser goes to the server again for a fresh page request. Now because you logged out, the page should send you back to the login page.





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
Browser's BACK Button Problem phungleon Classic ASP Databases 6 May 16th, 2005 03:10 PM
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.