470,594 Members | 1,444 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.



In trying to reduce database calls, I've created a class (we'll call it
MyClass) which is created in the login page. I'm trying to store it in a
session variable, and when I call the code:

Class Security
End Class

SET objSecurty = new Security
Session("Security") = objSecurity

On the session() = line, I get the error:

Session object error 'ASP 0185 : 80020003'
Missing Default Property
/login.asp, line 123
A default property was not found for the object.

Anyone got any ideas?

Thanks in advance,

Jul 19 '05 #1
2 2228
> Session("Security") = objSecurity

How about Session("Security") = objSecurity ?

You will probably still get an error because you cannot store classes
created in VBScript into a session variable, the classes and object
instances of that class lives on that page, when you leave the page it is dead.

You need to create a component instead in VB or VC++.

Jul 19 '05 #2
> How about Session("Security") = objSecurity ?

That should be SET Session("Security") = objSecurity

But like I said, it wont work, at least not anywhere else
than on that page.

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Aguilar, James | last post: by
12 posts views Thread by Langy | last post: by
4 posts views Thread by john townsley | last post: by
18 posts views Thread by Edward Diener | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.