ASP.NET 2.0 Session State Scope

G

Guest

I can't believe I've never noticed this. Is the Session object at the domain
level and not at the virtual folder level? I guess I have not done multi-app
development at the same time.

I am working on two ASP.NET 2.0 web apps that a user will bounce between. I
am running these in development on my Windows XP machine.

I am writing a value to each application's state. The variable name is the
same in both applications: Session["connectTime"].

I noticed that AppB was overwriting AppA's value. The URLs are
http://localhost/AppA and http://localhost/AppB.

As far as I can tell looking at machine.config and web.config session state
has not been modified so I believe I am using the defaults.

Thanks ahead for the confirmation!
 
G

Guest

Noremac said:
I can't believe I've never noticed this. Is the Session object at the domain
level and not at the virtual folder level?

Neither. It's at application level.
I guess I have not done multi-app
development at the same time.

I am working on two ASP.NET 2.0 web apps that a user will bounce between. I
am running these in development on my Windows XP machine.

I am writing a value to each application's state. The variable name is the
same in both applications: Session["connectTime"].

I noticed that AppB was overwriting AppA's value. The URLs are
http://localhost/AppA and http://localhost/AppB.

Then neither of the folders are applications. You have only one
application, and that is the web root folder.
 
W

Walter Wang [MSFT]

Hi Noremac,

I also think that your AppA and AppB might not have been correctly
configured as an application in IIS, you can verify this by open its
properties dialog in IIS Manager: on the "Virtual Directory" tab, if you
see the "Application name" field is disabled and the button at the
right-side of it shows "Create" instead of "Remote", then it's not an web
application.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
W

Walter Wang [MSFT]

Hi Noremac,

I'm writing to check the status of this post. Please feel free to let me
know if there's anything else I can help. Thanks.



Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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,962
Messages
2,570,134
Members
46,690
Latest member
MacGyver

Latest Threads

Top