Forum Moderators: open

Message Too Old, No Replies

Newbie Exception with include/Session

How is Session initiated?

         

HeadBut

10:12 pm on Oct 4, 2004 (gmt 0)

10+ Year Member



if Session("Access")="Admin" then
Set Administrator = True
else
Set Administrator = False
end if

this: if Session("Access")="Admin" then

gives me:
error '80020009'
Exception occurred.

Is the session not started yet?
I just set this session in another window then reloaded this page?

txbakers

1:41 am on Oct 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A Session object is created for each web browser session opened. If you don't set one on the first window, the popup could set it, but the first one won't know about it until you log out and login again.

You need someway to set it on the main Window first.

HeadBut

6:10 pm on Oct 5, 2004 (gmt 0)

10+ Year Member



I tried going to the signin page then going to the main page as a logged in browser... it doesn't help.

Is there a way to test a session("var") to a string?