Debugging and Session Resetting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Has anyone encountered this problem? I start debugging my application and
the session get reset (as far as I can tell). I then stop and restart and
everything is fine.

Basically the symptoms are as follows: after starting the application,
everything is fine and the session variables are set. I get to my 'main'
page and click on a button to search or go to another page and the
application crashes because the session variables contain 'nothing' Stopping
and restarting fixes the problem.

This happens fairly consistently.
 
If you cross virtual directory or IIS application boundries, the
session variables will get reset. Where is the "other" page located?
 
The entire application resides in the same virtual directory. The problem
doesn't occur after I stop the app and restart, once I've encountered the
problem.

Thanks.
 
re:
If you cross virtual directory or IIS application boundries, the
session variables will get reset.

Wouldn't a more accurate description be that "a new session is started" ?

The session variables in the first application will *still* be there,
if you return before the session times out.

In other words, they are not "reset" just because you visit a different application.




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
 

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

Back
Top