You need to sign in to do that
Don't have an account?
iliveinhope
Session is gone after redirect
I have a weird problem with session.
I use a web link to open a ASP.NET web application in a IFrame (instead of openning a new window). there are two aspx pages A and B. A is used to do authentication and create a user session once the user is authenticated. After that A will use Response.Redirect(B), to redirect to page B.
The problem is. the session variable is lost when I do redirect from A to B. as a result the user is never authenticated on B. I know the ASP .NET application works because I tested it in a separate IE window and it is fine.
What seems to be the problem here? I think it has something to do with IFrame.
I use a web link to open a ASP.NET web application in a IFrame (instead of openning a new window). there are two aspx pages A and B. A is used to do authentication and create a user session once the user is authenticated. After that A will use Response.Redirect(B), to redirect to page B.
The problem is. the session variable is lost when I do redirect from A to B. as a result the user is never authenticated on B. I know the ASP .NET application works because I tested it in a separate IE window and it is fine.
What seems to be the problem here? I think it has something to do with IFrame.
Hi iliveinhope,
This is a browser security issue. The cookie for the user session in asp is not allowed when set in an IFrame from another domain.
The way to resolve this is to use a cookie-less session in ASP.NET. I've attached a sample that does this.
Rename the file to .zip to unzip it.
Hi Dave
I have exactly the same issue. I was looking for your sample code, you had mentioned in the Reply. Could you please let me know where I can get it.
Thanks for your help in advance.
If you can forward the sample to, bala.ramadas@alldocuments.com or rbalagan@yahoo.com , it will be of great help.
Thanks
Bala