Click to See Complete Forum and Search --> : "sharing session between asp and asp.net"


anupam kant
April 4th, 2003, 10:24 PM
Hello,
I have an ASP application and an ASP.NET application now I want to keep some session variables common in both the application, like login details etc, my problem is "how can I use session created by ASP in ASP.NET or v/v?"
If this is absolutely not possible then what is the best way to achieve the same.

Thanks

scott_mccain
April 4th, 2003, 11:51 PM
You cannot share session states between ASP and ASP.NET, therefore you cannot use the session to pass information. There are several other options though, the first being cookies. I believe if you do not set an expiration on a cookie it will live for that session only. Other ways of passing information include passing name/value pairs on the URL, e.g. http://localhost/MyWebService.aspx?Search=abc. You can also use form data to share information.

anupam kant
April 5th, 2003, 12:04 AM
Thanks Scott...