ASP session vs. ASP.NET session

E

Ed

Is it possible to define a SESSION("userid") in ASP and then retrieve its
value from ASP.NET? (Suppose I have an application in both ASP and
ASP.NET.)

Thanks.
 
P

Peter Rilling

No. Your best bet might be to use something like cookies.

Unless there is no other way for your problem, I would suggest not mixing
code environments. The reason being that ASP and ASP.NET are handled by
entirely different execution engines. You run into a lot of problems as one
group of pages does not know that the other exists. Because they use
different engines, the do not share memory space. This can lead to logical
inconsistencies. Suppose that a user accesses your home page, which might
be ASP.NET. A session is started. Now, they navigate to another page that
is ASP only. A second session is started, even though logically the user is
in the same web application.

I think this is how things work.
 
K

Keith

From what I understand the two can exist together but not
share data, but if I were in your situation I would
simply use Response.Redirect with a querystring parameter
to pass data. Don't forget to encode it.
 
K

Keith

This would be painfully slow and overengineered and like
the redirect would not support serialization of objects
like ADO Recordsets (though you could convert them to XML
strings). The article also fails to discuss locking
scenarios in the database. I would be very judicious
about what you need to share between the two and either
use the redirect approach or a persistant data store like
MSDE or SQL Server.
 
T

TJS

if you have any concerns or questions about the solution, please take them
up with the author of the article, (e-mail address removed).
 

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,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top