Groups | Blog | Home
all groups > asp.net > january 2004 >

asp.net : ASP session vs. ASP.NET session



Peter Rilling
1/31/2004 9:05:23 PM
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.

[quoted text, click to view]

Keith
1/31/2004 9:08:27 PM
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.

[quoted text, click to view]
TJS
1/31/2004 11:09:32 PM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/converttoaspnet.asp



--
================================
http://www.ASPkey.net/
A Resource Site for Web Developers
*Free OnLine web Tools
*Free development services
================================

[quoted text, click to view]

Keith
1/31/2004 11:40:08 PM
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.

[quoted text, click to view]
Ed
1/31/2004 11:43:14 PM
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.

Ray at <%=sLocation%> [MVP]
2/1/2004 4:33:38 AM
But wouldn't that allow people to hijack sessions? ;]

--

Ray at home
Microsoft ASP MVP


[quoted text, click to view]

TJS
2/1/2004 10:57:34 AM
if you have any concerns or questions about the solution, please take them
up with the author of the article, billyy@microsoft.com.


[quoted text, click to view]

Saravana [MVP]
2/2/2004 10:29:45 AM
Check out this article also to share sessions between asp and asp.net,
http://www.eggheadcafe.com/articles/20021207.asp



--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com



[quoted text, click to view]

AddThis Social Bookmark Button