Sunday, November 29, 2009

Can i maintain ASP and ASP.NET Sessions on a same page?

Hi Guys,



I have a problem, i am migrating from existing asp application to asp.net web application. The existing asp application holds user session variables. I can share those session variables between asp and asp.net applications by storing it in database, but my actual problem is after i logging in to asp app i redirect the page to asp.net web page. Now asp.net session is creating in application start... but after a postback asp.net session expires!!



Is it possible to maintain asp and asp.net sessions on a same page with or without HTML frames?



Can i maintain ASP and ASP.NET Sessions on a same page?windows mail



royson!



u must be redirecting the user to some default page in your asp.net application. in that default page pass the values of the database session to a session variable like this.



for eg.



In default.aspx of ur .net application



Session["loginid"] = database values...



then u will be able to access the above session variable throughout ur application until the user session expires or a server timeout occurs.

No comments:

Post a Comment

 
c++