Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE 7 losing Session variables

Status
Not open for further replies.

TheOnlyBeth

Programmer
Jun 15, 2008
5
0
0
US
Hi -

I am losing my session variables only on one page of my app. It's written in ASP.NET 2.0/VB. I tracked it down to happening during the sub:

Protected Overrides Sub Finalize()
MyBase.Finalize()
End Sub

{I placed a msgbox before and after with the session variables. The variables appear before the MyBase.Finalize() but disappear after it.}

I've created at least 7 other pages against the same master page, using the same basic format. They all work perfectly. It is only this one page. All of the other pages have the same Sub Finalize() with the same code..but they are not having that problem.

Just in case there was some sort of wierd invisible code on the page, I recreated it...still having the issue.

There are no Session.Clear or any other code that clears the
sessions. Also the Session variables are not being reset with any new values.

I can flip from one of the other pages to another and even to this one without losing any of the values. It is only this page that does it. Basically I am keeping the security group ID in a session variable and implementing page level security. So when the sessions are cleared, the group ID is cleared and the page automatically defaults to the login page.

I've searched Google, google groups, 4GuysFrom Rolla and a dozen other places with no answer to this problem.

This is not a timeout issue as it happens instantaneously with no delay.

I go into the page with the variables, immediately click either the menu or a button to leave the page and 'boom'...the variables are gone. It even happens when I select the back button on my browser.

The strange thing it...it doesn't happen on a Safari browser. On IE only that page loses the session variables. In Opera ALL the pages lose their session variables. It also works perfectly in FireFox.

I'm desperate for help...anyone?

Thanks,

Beth

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top