SHARED Whatever as String

Reply

Join Date: Dec 2007
Posts: 291
Reputation: ericstenson is an unknown quantity at this point 
Solved Threads: 29
Team Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

SHARED Whatever as String

 
0
  #1
Apr 9th, 2008
Hi - At the top of my page, let's say I declare a variable by

Shared D1 as String

Then in different functions/routines throughout the page I write and read the value of the string.

This works just fine.

The problem is, let's say the user closes the browser and another users signs in from a different computer, some amount of time later... it seems the "D1" hasn't cleared it's value!

Why is this happening?
--
"Dummy."
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,297
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 68
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso

Re: SHARED Whatever as String

 
0
  #2
Apr 9th, 2008
that is odd. sounds like ( i am guessing here ) you might need to include something that states when the Session has expired, reset the string to whatever you need it to be. I hope this helps steer you in the right direction...
Computers are man's attempt at designing a cat: It does whatever it wants, whenever it wants, and rarely ever at the right time.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 291
Reputation: ericstenson is an unknown quantity at this point 
Solved Threads: 29
Team Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: SHARED Whatever as String

 
0
  #3
Apr 9th, 2008
Yes, I ended up changing the code so that when I was finished with the variable I reset it to D1 = ""

It was really strange, though. I can't figure it out. I am thinking maybe an IIS error?
--
"Dummy."
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ASP.NET Forum


Views: 479 | Replies: 2
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC