Hi all,
I need clarification of some doubts on WebISession.
1) After we create a session in the login page, how should we use that session in the rest of the ASP application? Should we store that WebISession as a session object? Or should we use the
Set WebISession = WebIServer.GetSession()
statement ?
2) I am using 6.5 version now.
When I use the
Set WebISession = WebIServer.GetSession() statement, I get no error. But in the next line, when I check if WebISession.IsValid is true, the error says Object required.
My code is:
Set WebISession = WebIServer.GetSession()
If Err.Number <> 0 Then
Response.Write(Er.Description)
Response.End()
End If
If WebISession.IsValid = False Then
'do something here
Response.End()
End If
Please advice.
TIA,
S
I need clarification of some doubts on WebISession.
1) After we create a session in the login page, how should we use that session in the rest of the ASP application? Should we store that WebISession as a session object? Or should we use the
Set WebISession = WebIServer.GetSession()
statement ?
2) I am using 6.5 version now.
When I use the
Set WebISession = WebIServer.GetSession() statement, I get no error. But in the next line, when I check if WebISession.IsValid is true, the error says Object required.
My code is:
Set WebISession = WebIServer.GetSession()
If Err.Number <> 0 Then
Response.Write(Er.Description)
Response.End()
End If
If WebISession.IsValid = False Then
'do something here
Response.End()
End If
Please advice.
TIA,
S