General information
Title:
NOT automatically bring user to login.aspx
Environment versions
Network:
Windows 2000 Server
Dear All
I have 3 webforms:
- login.aspx
- mainform.aspx
- logout.aspx
In my web.config:
sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="25"
in login.aspx, I put session control as follow:
mUserId = "TEST"
Session("WebLogMemberID") = mUserId
in the page_load event of mainform.aspx I put session control as follow:
If Len(Trim(Session("WebLogMemberID"))) = 0 Then
Response.Redirect("login.aspx")
End If
means if user has no passed the login screen then he/she will kicked back to login.aspx ..
in the page_load event of logout.aspx, I put as follow:
Session("WebLogMemberID") = ""
but when user click "Back" button .. it will not automatically bring user to login.aspx except I have to press F5 for refresh page manually .. please advise and many thanks in advance
Regards
Winanjaya
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only