|
Session.Addclass('source of class', 'name of class'
Session.Setprop('name of class', 'name of prop', ;
'comma delimted list of settings to pass to class')
Session.Getprop('classname and property') |
then you could store all the above stuff to a table in the proper order so if the channels crash you can recreate it.
Or you could use the object.SaveAsClass method which saves a object in memory into vcx file as is, with all it properties and events
So what i would do is on the Error event have it dump all the objects that are in memory into a vcx file then recreate them.
The only problem i see with this is if the channels crash and you an have ODBC/oledb data connection open you will have to recreate that no matter what.
But if we add an event to our Classes call it Recreate, you could look for that event then call to reset certain properties like data connections if the channels crash
Justin Graf
FoxWeb Support Team support@foxweb.com email |
omynewobject = createobject('thisobject')
omynewobject.TheSettings ='hello World'
session.setvar('myobject', omynewobject) |
then in other web pages go get the object i created ealier without having to recreate the object.
omynewobject = session.getvar('myobject')
Response.Write(omynewobejct.thesettings)
|
this would make my life allot easier when building my applications in the sense that the classes i create would control all the settings and keep track of every thing and speed things up sense i don't have to recreate the object all the time and reconnect to Remote Database servers.
I also understand this would be a memory burden on the foxweb server trying to keep track of the objects in memory. but i would like it to be able to do this