Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
how to make session expire of web pages..
i want that when the user log out .. he should enter user name and password to enter in to the website..forward button of explorer should not work once user logout
Posted 13-Nov-12 20:55pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Read http://msdn.microsoft.com/en-us/library/ms178201%28v=vs.100%29.aspx[^]:
 
Quote:
Allow users to log out, at which point you should call theHttpSessionState.Abandon method. Warn the user to close his or her browser after logging out.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

set the expire time for the session to expire by default.
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 9,935
1 OriginalGriff 6,987
2 CPallini 5,845
3 George Jonsson 4,015
4 Gihan Liyanage 3,266


Advertise | Privacy | Mobile
Web03 | 2.8.140926.1 | Last Updated 14 Nov 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