|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
my problem is when the user logout they can get access the pages by click the icon back at the explorer...
how i can avoid it?? anyone know what method i should do... when i use session i'll use session.abandon.. n what should i do when i not use session.. |
|
#2
|
||||
|
||||
|
you have to use some sort of cookie or session. I don't know any other way.
__________________
ShepherdWeb :: Charging Rhino Wizard I know of no more encouraging fact than the unquestionable ability of man to elevate his life by conscious endeavor. {Henry David Thoreau} § shepherdweb.com § fariswheel productions § reagan administration |
|
#3
|
||||
|
||||
|
on click of the logout button, redirect to an another file namely "logout.asp",
where u code the following.. <% 'null all session variables session("username") = "" 'then redirect to the page that u want or close.. response.redirect("login.asp") %> |
|
#4
|
||||
|
||||
|
You can use that, however if like me it is not working for you then there is this code.
It prevents the user going back via using the back button. It however has a limitation that it doesn't support all browswers but does support the popular ones. Place the code in the head. Code:
<script language="javascript"> window.history.forward(1); </script> Like this: Code:
<html><head> <script language="javascript"> window.history.forward(1); </script> <title>login</title></head> <% Response.Expires = -1 Response.CacheControl = "Private" %> |
|
#5
|
||||
|
||||
|
Quote:
__________________
Have I made your day? If so, please show your appreciation either by sending money or the cheaper, preferred option of clicking on the scales icon at the top right of this posting. My reputation needs all the help it can get.
|
|
#6
|
||||
|
||||
|
snipered - also, if that method is not working for you, you are probably not handling the session correctly. This means that unauthorized users could gain access to your login.
|
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > Dont Know |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|