|
-
Jan 29th, 2002, 07:29 PM
#1
Thread Starter
Member
Session variables.....
I was wondering if it was possible to store objects in session variables using ASP, like in JSP where you could define the scope of a usebean. That way I could have a presistant connection or recordset. But I've only heard of sessions that store String values.
Ex.
dim objCon
dim objRec
set objCon = Server.CreateObject("ADODB.Connection")
set objRec = Server.CreateObject("ADODB.Recordset")
objCon. .................
objCon.connect
objRec.open blah, blah, blah, blah, blah
Session("Recordset") = objRec '/OR Set Session("Recordset") = objRec
I'm going to try it after I get off work!!
Any ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|