ASP.NET loses Session variables when in Debug mode

G

Guest

Hello,
It would be great if someone knows the answer to this problem I'm
getting bogged down with it.
Basically I'm working with an ASP.NET solution that uses the Session
object to maintain state. When I use IIS to browse the .aspx pages the
session state works but when I step through the code with Visual
Studio's debugger the session variables are lost although the session
ID stays the same.

When I say the session variables are lost, I set them on one page - via
a control - but when I go to another page the session count is 0 and
querying the session variables returns null. I can't understand why it
works when I browse the pages via IIS but not when I'm using the
debugger.

I've searched the newsgroups and although there are people out there
with similar problems either their solutions don't work for me or are
not suitable for the project I'm working on.
I look forward to your replies,

Daniel.
 
D

Dimitri Glazkov

Daniel,

Let's get some specifics on this issue. What are the URLs of the pages that
you're using for this test? Could you post a snippet of code to describe
what you're doing?

:DG<
 

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

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top