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 February 23rd, 2005, 03:24 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default Page has expired

Hi Experts,

In my asp.net application, I have a login screen. The user loggs in by keying in the correct userid & pwd. He can logout by clicking on the logout button whcih clears the all session (including Session.Abandon) and takes you back to the login page. However, I can click on the back button on the browser to go to the previous page. Is there any way to disable this?? I have seen this in many application esp. email programs.

Please help


Regards
Ganesh
__________________
Regards
Ganesh
http://ganeshprof.blogspot.com
Find your solution here...
 
Old February 23rd, 2005, 04:36 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

U cant disable the back button.You can prevent the user to go to previous page by redirecting to the same page.You can achieve this by javascript using history.go().
if(history.go(-1))
   history.go(0)
 Here -1 represents the previous page and 0 represents the current page.Hope this helps you.
 
Old February 23rd, 2005, 05:10 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

Thanx Santhi for your reply.

actually what I wanted to achieve is this:
If you log on to yahoo or hotmail, and then logoff by clicking the log off link, you cannot go back to your inbox by clicking on the back button. If you do so, you will be shown a message "Page has Expired". I would like to bring into my application a similar feature.

Do you have any solution to the above problem??

Thanking you in advance

Regards
Ganesh
 
Old February 23rd, 2005, 05:46 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Hi i got your problem .Check out the article below.
http://www.4guysfromrolla.com/webtech/111500-1.shtml
This has listed out some ways to handle the situation like yours.

 
Old February 23rd, 2005, 06:53 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

Thanx Santhi..

lemme go & check the site....

Regards
Ganesh
 
Old February 23rd, 2005, 07:21 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

It worked well. Thanx again for your help

Regards
Ganesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection expired MZA Oracle 0 February 2nd, 2008 01:31 AM
Timeout expired ks2006 ASP.NET 2.0 Basics 12 September 8th, 2006 03:54 PM
TimeOut Expired Lalit_Pratihari SQL Server 2000 1 July 23rd, 2006 12:59 PM
Warning: Page expired Renu ASP.NET 1.0 and 1.1 Basics 3 September 28th, 2004 11:04 AM





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