|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Question on Session/Application scope for variables
<i><b>Originally posted by : PVS (pvsraja@yahoo.com)</b></i><br /><br />Hello all,<br />I am new to ASP programming.<br />Is there any way to give session or application scope to variables from any asp page.<br />I know that I can use GLOBAL.ASA file to give any variables session or application scope.<br />In my case I want to declare one COM object with session or application scope from one of the asp page in my application.<br />In fact I don't want to use global.asa file<br /><br />How can I do that???<br /><br />Regards,<br />PVS
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : mprice (mprice@mvest.com)</b></i><br />You can create, destory, and set Session and Application variables from any page as well as in the global.asa just be doing something like Session("thevar") = "value". Do not store COM objects in session variables. This is a big performance killer. You can store text and numbers, but objects are a big no-no.<br /><br /><br />------------<br />PVS at 3/18/2000 11:56:50 PM<br /><br /><br />Hello all,<br />I am new to ASP programming.<br />Is there any way to give session or application scope to variables from any asp page.<br />I know that I can use GLOBAL.ASA file to give any variables session or application scope.<br />In my case I want to declare one COM object with session or application scope from one of the asp page in my application.<br />In fact I don't want to use global.asa file<br /><br />How can I do that???<br /><br />Regards,<br />PVS
|
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > Question on Session/Application scope for variables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|