Session info from classic asp to asp.net

  • Thread starter Thread starter rkmoray
  • Start date Start date
R

rkmoray

I am adding on to an existing classic asp app. I need to maintain the
session variables when I move from classic to asp.net.
Any ideas on how to do it?
 
Session variables can't be "shared" between asp and asp.net. You can find
some clever ways to pass them into asp.net, however. (Use a database,
etc...)

Steve


rkmoray said:
I am adding on to an existing classic asp app. I need to maintain the
session variables when I move from classic to asp.net.
Any ideas on how to do it?
 
There is no single great way to share session state between ASP and ASP.NET.
But that doesn't mean you don't have options.

Here are some common ways:
* Store the data in a common database
* Pass data from page to page on the QueryString
* Store the data in cookies
* Use a 3rd party session sharing component
(Here's one:
http://www.consonica.com/solutions/dotnet/statestitch/index.html)
* Use COM Interop to provide an object that both sides can access that
handles the data.
Here's an example of the latter:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/ConvertToASPNET.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com


rkmoray said:
I am adding on to an existing classic asp app. I need to maintain the
session variables when I move from classic to asp.net.
Any ideas on how to do it?
 

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

Back
Top