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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Creating the Session objects

Status
Not open for further replies.

kllick123

Technical User
Sep 24, 2002
22
IN
My Program is as follows

<% @Language = VBScript %>
<%
Response.Expires = -1
Response.Write session.sessionID
Response.Write session.Timeout
session("name")="arun"
Response.Write session("name")

%>

also the global.asa file is as follows

<SCRIPT LANGUAGE="VBScript" RUNAT=Server>
Sub Session_OnStart
session.Timeout = 30
session("login")="NO"
session("name")=" "
End Sub

Sub Session_OnEnd
session.Timeout = 1
session("login")="NO"
session("name")=" "
End Sub

</SCRIPT>


The follwing error is displayed

Technical Information (for support personnel)

Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'session'
/s.asp, line 4


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; SEARCHALOT)

Page:
GET /s.asp



Can any one help me to solve the errors


arun
 
I believe the correct syntax for the globab.asa Session subroutines are as follws...
Code:
Sub Session On_Start

End Sub

Sub Session On_End

End Sub

Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top