re-writing the Session Object
Posted on 2004-09-13
Okay, I'm re-writing the ASP Session object so that it's pulled from a database and thus can be used in a server-farm environment.
1) How do I get a 'default' function to apply to a class? ie to reference session objects you can use session("variable"). I want to be able to do this with a defined class, ie classname("variable") and not classname.somefunction("variable")
2) if the first is possible, how do I determine if the call is for a read or a write? ie [var x = session("blah")] vs [session("blah") = 5]
3) I'm almost certain that 1 & 2 aren't possible in ASP. This being the case, how do I do this in VB?
4) How do browsers determine what a "session cookie" is? if you go to IE's privacy settings you can over-write the default cookie settings and there's a checkbox that says "always allow session cookies". Is this determined on the cookie name (ie ASPSESSIONIDQSBTSATA), the expiration (in which case what would I need to set the expiration to to make it work), or is it something that I don't have control over in raw ASP?