Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP Javascript
Hi all,
 
I am facing a problem in .net history clearance. The scenario is
 
I am currently logging into gmail and seeing my mail. Now i type the Yahoo URL in the address bar. The site get launched. Again i changed the URL to gmail.com. now i can see my mail without giving Username and Password.
 
what i need is i need to sign out from gmail when i type some other site in the URL
Posted 6-Jul-12 1:07am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Refer 5 steps to delete history:
How to Delete History in ASP.NET[^]
  Permalink  
Comments
Manas Bhardwaj at 6-Jul-12 7:12am
   
good +5!
Prasad_Kulkarni at 6-Jul-12 7:46am
   
Thank you Manas!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

you need to destroy the session, if you you are storing your UserName and Password into session.
On LogOut button Click event Write following code:
Session.Abandon();
 
i hope it will help you.
 
best of luck.
  Permalink  
Comments
Manas Bhardwaj at 6-Jul-12 7:13am
   
right +5!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Well, that has nothing to do with history. You need to manage the state of your application properly. You can try to play with onbeforeunload [^]event.
 
Create a session variable which keeps your login state. Hook a webservice call to onbeforeunload event, which would clear the session information once you navigate to any other url.
 
Hope this helps!
  Permalink  
Comments
Prasad_Kulkarni at 6-Jul-12 7:46am
   
My 5!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

Click on 'logout' button before navigating to any other site.. That's all....It is what Gmail gave you the logout button...If you do not use it, GMail is not at fault...
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.140926.1 | Last Updated 6 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100