|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Backdoor Security!! (Beginner -needing help)
<i><b>Originally posted by : Andrew (rennera98@yahoo.com)</b></i><br /><br /><%<br />Response.Expires = -1000 'Makes the browser not cache this page<br />Response.Buffer = True 'Buffers the content so our Response.Redirect will work<br />Session("UserLoggedIn") = ""<br /><br />If Request.Form("login") = "true" Then <br /> CheckLogin <br />Else<br /> ShowLogin <br />End If <br /><br /><br />Sub ShowLogin <br />...<br /><br />Above is the code that I am using on my login page! I want to use the session variable ("UserLoggedIn") at the beginning of each page in side that site to make sure that it is somewhat secure. <br /><br />Does anyone know what I would code at the top of each page to check if the session variable ("UserLoggedIn") is true? If true then they have access otherwise they get a message saying they must login first?<br /><br />Any help would be greatly appreciated!<br /><br />Andrew<br />rennera98@yahoo.com
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : steve</b></i><br />you'd have to have the code to check for the variable and if not then redirect back to the login page<br /><br /><br />------------<br />Andrew at 3/31/2000 12:27:43 PM<br /><br /><br /><%<br />Response.Expires = -1000 'Makes the browser not cache this page<br />Response.Buffer = True 'Buffers the content so our Response.Redirect will work<br />Session("UserLoggedIn") = ""<br /><br />If Request.Form("login") = "true" Then <br /> CheckLogin <br />Else<br /> ShowLogin <br />End If <br /><br /><br />Sub ShowLogin <br />...<br /><br />Above is the code that I am using on my login page! I want to use the session variable ("UserLoggedIn") at the beginning of each page in side that site to make sure that it is somewhat secure. <br /><br />Does anyone know what I would code at the top of each page to check if the session variable ("UserLoggedIn") is true? If true then they have access otherwise they get a message saying they must login first?<br /><br />Any help would be greatly appreciated!<br /><br />Andrew<br />rennera98@yahoo.com
|
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > Backdoor Security!! (Beginner -needing help) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|