View Full Version : Sharing session values from asp.net to a classic asp page?

01-05-2007, 07:54 PM
Hello all!

I am in a delima here. I have a membersonly section that our users log into. I am passing a tokenkey to verify the session and to prevent others from hacking, sharing, ect info. I am setting the tokenkey to a session.item("sesTokenKey") in the codebehind.

Now we created a page in classic asp, which we need to request("Tokenkey"), which is working fine by passing the arguements via the link, but I need to match it by verifying the session value, from the asp.net main page.

In classic asp its session.content("").

Is there a way around this? I hope I made sense.



01-05-2007, 10:59 PM
I did a temporary fix, which is to use a redirect page in between the pages to set the values.


01-09-2007, 01:53 PM
The Session objects between Classic ASP and ASP.Net are completely different. This would make sense as they are both different ISAPI filters inside of IIS. There is no way to share the Session data in the way you described. You need to create a communication channel between the two yourself.