swordfish
swordfish

Reputation: 4995

Classic ASP sessions getting lost in Internet Explorer

I am developing a legacy application in Classic ASP. I am experiencing a strange problem with Internet Explorer. I set certain session variables in a page and retrieve them on another page.

This is working perfectly in Chrome and Firefox.

But in Internet Explorer, most of the times, it is dropping the values in the session variables. This is in IE 7, 8 and 9.

If I move to a different page after a long time, the session data is retained. But if I move to the page within a short time, the session data is not retained. The retrieved session variable is empty.

Any help would help me get past this stumbling block!

Edit:

The code is plain and simple, just setting some session variables and when i move away from that page, they are lost and this happens only in INTERNET EXPLORER.

Upvotes: 1

Views: 1691

Answers (2)

tree
tree

Reputation: 740

Had this problem with IE10

Make sure you don't have the delete history checkbox checked.

Tools > Internet Options > Browsing History

For some reason this affected both Session variables and Cookies.

Upvotes: 0

Joachim
Joachim

Reputation: 11

I would guess that i could have to do with response.buffer = true if redirecting to other page try add response.clear before the redirect and response.end at the end of the page just before </body></html>

Upvotes: 1

Related Questions