|
-
Jan 10th, 2000, 04:53 AM
#1
Thread Starter
Lively Member
We have an IIS application done using Webclass. We have a global variable which get the value from the global.asa
We have htm templates which uses webtags and xml to load data.
After leaving the page unatteded for some time and when we tried to load XML it fails.
We tried to set the session.timeout to 120
But it didnt work. We found that the global variable is not retaining its value.
This variable is delcared as public in a module and is assigned value from the applicaiton object.
I would appreciate if some one could help me in finding the reason and a solution for it.
Thanks
Ramdas
-
Jan 10th, 2000, 07:50 AM
#2
Hyperactive Member
strange.. from what i know it should retain its value, as it's declared as Public at Module level.
You could try declaring it as Static, so even if it did go out of scope, it would retain it's value.
eg.
Static MyVar as Integer
------------------
cintel rules 
www.cintelsoftware.co.uk
-
Jan 10th, 2000, 03:41 PM
#3
Lively Member
did you pass that global variable in a function or a procedure? if so, maybe you passed it byref instead of byval.
-
Jan 12th, 2000, 06:46 AM
#4
Thread Starter
Lively Member
I didnt pass it to functions.
since it being a global variable it is directly referred in functions.
I am wondering whether making dll using webclass is going to handle global variables in a different way?
Thanks
-
Feb 27th, 2000, 12:58 AM
#5
New Member
Global variable lose value
Try to use cookies to store the global values
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
|