Joel said:
Session("oAppUser") is in fact an object that was returned by my vb
code like this:
Set oAppTDE = Server.CreateObject("AppTDE.TDEManager")
Set Session("oAppUser")=oAppTDE.Login(cstr(sUsername),cstr(sPassword))
Set oAppTDE = Nothing
Don't worry ! I know, we are not suppose to store objects in session
variables....but that object has just a couple of properties that's
it.
What the object stores is not the problem. The problem is whether or not the
object is free-threaded. If it was created in VB, then it is not
free-threaded, and storing it in Session is not recommended.
So, you need to find out if the session variable exists, and if it does
exist, it will contain an object.
The first step is to use IsObject to determine if it is an object.
If IsObject(Session("oAppUser") then
if not Session("oAppUser") is nothing then
--
HTH,
Bob Barrows - Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.