Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NOT automatically bring user to login.aspx
Message
From
13/12/2004 00:15:24
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
NOT automatically bring user to login.aspx
Environment versions
Environment:
ASP.NET
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Oracle
Miscellaneous
Thread ID:
00968656
Message ID:
00968656
Views:
49
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
Map
View

Click here to load this message in the networking platform