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?

Recommended Answers

All 2 Replies

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...

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.