Session Timing Out Immediately

P

Paul H

Hi there

I'm having a problem where I'm losing Session variables as soon as they've
been set up.

The user logs onto the system, the system sets some Session variables, and
redirects to a menu page. The menu page checks the Session variables, can't
find them, and asks the user to log in again - the second login is successful.

Has anyone seen this before, and do you know what I should do about it?
 
P

Paul H

Problem solved!

I changed the Redirect call to 'Response.Redirect("menupage.aspx",false)',
and got rid of a pesky Session.Clear() in the HTML for the page, and the
problem sorted itself out.

:)
 
B

Bob Barrows [MVP]

Paul said:
Problem solved!

I changed the Redirect call to
'Response.Redirect("menupage.aspx",false)', and got rid of a pesky
Session.Clear() in the HTML for the page, and the problem sorted
itself out.

:)

I'm happy to hear you sorted it out. However, I noticed you wrote ".aspx".
There was no way for you to know it but this is a "classic" asp group. The
..Net groups all have "dotnet" in their names. For future reference, the
ASP.Net group is microsoft.public.dotnet.framework.aspnet
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top