Click to See Complete Forum and Search --> : vbscript Object propblem


cappy2112
January 19th, 2005, 02:52 PM
I've found this on a web site, posted by that admin.
Unfortunately, the admin's email box is full, so my guess is he is no longer there.

It seems straightforward to me, but when I run it, the vbscript debugger tells me that Session is not a valid object.

Does anyone here know why?


public function Test()
Dim AdmUser

AdmUser = Session.Property("AdminUser")
if (AdmUser="") then
Msgbox "You need Admininstrative priviledges to run this setup" , vbokonly
Test = 1602
else
Msgbox "You Are already an Admin" , vbokonly
Test =0
end if

end function

visualAd
January 20th, 2005, 05:12 AM
Are you running this as ASP or a standalone VB Script?

cappy2112
January 20th, 2005, 01:01 PM
Are you running this as ASP or a standalone VB Script?

Standalone. I don't know asp at all.