3

I have two ASP.NET web applications on the same server and domain, e.g. myServer/app1 and myServer/app2.

app1 reads Session.SessionID and then redirects to app2. Will app2 read the same Session.SessionID value? Both applications run under the same application pool and use InProc session state.

Background: This works (same SessionID) on our server but fails to work on our customer's server (different SessionID). I'm trying to find out

  • if we made wrong assumptions and it works just by accident on our server (why?) or
  • the customer's server is misconfigured somehow.

Therefore, I'd like to know what's supposed to happen.

Heinzi
  • 167,459
  • 57
  • 363
  • 519
  • wondering if you redirect with `(url,false)` would make any difference, maybe its internal call to `Response.End` might be causing it to create a new session id for the next request. – V4Vendetta Sep 07 '11 at 11:27
  • @Heinzi You might want to read this thread - http://stackoverflow.com/questions/3215737/how-to-maintain-the-same-session-id-across-multiple-web-applications-in-asp-net – KV Prajapati Sep 07 '11 at 12:08
  • @adatapost: Thanks. That seems to imply that the answer is *no* and that it is only working on our development server "by accident". I'd keep the question open, though, maybe someone can explain *why* it works like this. – Heinzi Sep 07 '11 at 14:20
  • Just to be sure... are both apps served from the same domain/subdomain on your costumer's server? – ygormutti Oct 22 '13 at 21:55
  • @ygormutti: If I remember correctly (it's an old issue), yes. – Heinzi Oct 23 '13 at 05:35

0 Answers0