470,810 Members | 1,251 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,810 developers. It's quick & easy.

Session Variables created in ASP Classic: Can they be read by ASP.NET code?

I've been smacking into one brick wall after the next in converting some of my code from ASP Classic to ASP.NET. This one is a real bugger. I use Session Variables to help with User Security. If they drop a key Session Variable then they are signed out of the application.

I create this session variable at Signon in Classic ASP code, but as I am finding out the hard way later ASPX code modules are not picking up these session variables. Is there a way to do this? Every time I execute a Request.Cookies("variablename").Value it tells me that "Object reference not set to an instance of an object"

Any ideas
Thanks
Wynte

Jul 21 '05 #1
2 1545
Hi,

ASP and ASP.NET not running under the same process thus can't share
session data. There is MS solution:
http://msdn.microsoft.com/library/de.../en-us/dnaspp/
html/converttoaspnet.asp

And Commercial solutions:
http://www.consonica.com/solutions/d...x.html?ad=g&id
=10

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #2
Thanks for the confirmation and the commercial application idea. But I am going to try something that I found that should do the trick. It enables me to pass the session variables back and forth between the classic and .net code. Its at http://www.eggheadcafe.com/articles/20021207.as

Thanks
Wynter
Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Paul Yanzick | last post: by
31 posts views Thread by Harry Simpson | last post: by
10 posts views Thread by tshad | last post: by
4 posts views Thread by abcd | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.