Link to home
Start Free TrialLog in
Avatar of snoopy21
snoopy21

asked on

Microsoft VBScript compilation error '800a03ea'

I am trying to us a session variable to ensure that URL's cannot be copied and posted into IE to get into the system without logging in, but I am getting teh following error:

Microsoft VBScript compilation error '800a03ea'

Syntax error

/studentmain.asp, line 5

If
--^

The code I am using is the following:

<%@LANGUAGE=VBSCRIPT%>
<%OPTION EXPLICIT%><!--#include file="Conn.asp"-->
<%

If
     Session("authoriseduser") = False or IsNull(Session("authoriseduser")) = True
     then
     Response.Redirect"login.asp"
     
End If

%>
ASKER CERTIFIED SOLUTION
Avatar of puranik_p
puranik_p
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fritz_the_blank
Puranik_p has it right.

Fritz the Blank
Avatar of webwoman
webwoman

Response.Redirect"login.asp"

You might want to fix this too, unless that's a typo.
Response.Redirect "login.asp"
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

accept a comment - puranik_p
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
lavinder
EE Cleanup Volunteer
Sounds good,

Fritz the Blank
                 :ô)