AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 Logout similarly like gmail or yahoo acount in asp.net
Posted by venkatesh on  7/11/2009 1:50:52 AM Category: Asp.Net 2.0
Add to my favorites
Email to friend
I am using asp.net c# master page for my site.
My question is: After i logout from my application then i clear all session and redirect to home page (i.e Login page) after that i use browser back then i can able to view all previous page data but i cannot access it which is right. Is there any possibility to avoid viewing the previous page..

1. Avoid cache the page coding in page load it is working fine in I.E not in fire fox.
2. Using cookie working fine but it is not safe to use.
3. History.go(-1) which terminate back when i am in logged state also.[disable total back]

Please give the Logout code for me which is like gmail or yahoo mail or hdfc back sites.

Thanks in advance.

Regards S.venkatesh.

Post Your Reply Post New Question

 Viewer's Reply
Use Forms Authentication
Answered By Moderator1 on 6/22/2010 1:04:12 AM
Hi,

In order to avoid the problem you faced, you have to use Forms Authentication technique. This will not allow the user to navigate back to visit the previous pages.
Check the below url,
http://www.asp.net/security/tutorials/an-overview-of-forms-authentication-cs
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
Backup and Recovery Best Practices for Microsoft SQL Server 2005
Everything You Know About CSS Is Wrong! - Free 37 Page Preview!
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!