3
votes

I created two different very simple apps (ASP .NET) and host on the local iis. Both apps are open in same browser in two tabs. In first application (AppA) I store some data in Session (Session["name"] = "john") and in second application (AppB) I read this value. When I explore cookies (with FireCookie) I saw that SessionIDs for both applications are same. Also, In both apps SessionID is printed and are the same. When I try get this value in AppB from session (with correct key), session is empty, but session id is still same. In AppA session data are still alive.

Why session data are different when both apps ask web server (with same session id) to return data?

1

1 Answers

2
votes

The sessions are not shared, because it are different applications. So even when they got the same id, they don't "know" eachother. Check out this article for a possible solution http://www.codeguru.com/article.php/c19357