-
Session Problem
Hi All!!!
I m facing a small problem.I have made a aspx page which is to be linked with existing ASP application.
I need to access the Session variable in my new ASPX page from the existing ASP page .
i wrote the following Code
Code:
txtUser.Text = Session["CurLgn"].ToString();
Session["CurLogin"] is the name of session variable in the existing ASP page.
Is there some trick to include this session variable in ASPX page.
Plz suggest
-
Re: Session Problem
Don't think this is possible directly...you could write a web service to get hold of it. In fact. I am not sure if this is possible.
Are they on the same server?
Woof
-
Re: Session Problem
yes they are on same server
-
Re: Session Problem
you can't access classic asp session variables from asp .net.
i found only one semi-secure way and that is to store the variables in a DB that uses a unique key.
pass the unique key via querystring to a middle asp .net page that sets the session variables and immediately redirects to the asp .net page and pull from that.