Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the WebISession right way

Status
Not open for further replies.

sheila11

Programmer
Dec 27, 2000
251
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top