Session - ASP and ASP.NET

  • Thread starter Steve C. Orr [MVP, MCSD]
  • Start date
S

Steve C. Orr [MVP, MCSD]

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
 
S

Scott M.

Classic ASP and ASP.NET do not share seesion or application data. You will
have to port the data back & forth yourself using any of several techniques
(cookies, database, querystring, hidden form field, etc.).

Also, Global.asa will still work with your classic pages but you will need a
global.asax to take advantage of the new events in .NET for the .NET pages.
 
G

Gustavo Pizzini Becker

I have an entire site build with ASP, and so using GLOBAL.ASA .
Now I'm writing some codes with ASP.NET, but I need to share some SESSION
variables.
1. Is it possible using only my GLOBAL.ASA? Or I will need another
GLOBAL.ASAX?

2. What is the best way to share the SESSION?

Thanks,
Gustavo
 

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

Members online

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top