Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP ASP.NET session
Hi I have a problem with session sharing between classic asp and asp.net applications. We have application in classic ASP written in vbscript and ASP.NET application in c#. All business logic is in classic ASP, but now we developing new version in .NET. For now we have only UI in ASP.NET and client want that user log in on ASP.NET application and be able to use functionality in classic ASP site. This two application are hosted on different servers but will be in same domain. (For example app1.domain.com is asp and domain.com is aspx site). I know that I need session sharing between this two app and I', trying to implement solution given in this article: http://msdn.microsoft.com/en-us/library/aa479313.aspx[^] . My question is, will this work for my case, so that i can share session between this apps on different servers within the same domain? This solution use cookies to send session ID. I tried this with this two application on same server, but I'm not sure will this work when it's deployed on different servers.
Posted 6-Dec-12 5:26am
Comments
ryanb31 at 6-Dec-12 12:26pm
   
Yes, it should work. Essentially you have to manage the session objects in a SQL db and both ASP and ASP.Net will need to track the same session ID so that you can set and retrieve values from the db accordingly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 575
1 Kornfeld Eliyahu Peter 409
2 Maciej Los 369
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,353
1 DamithSL 4,854
2 Maciej Los 4,476
3 Kornfeld Eliyahu Peter 4,058
4 Sergey Alexandrovich Kryukov 3,917


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100