Multiple forms and authentication
Hi. I'm creating a simple web application and I'm having trouble with user authentication. Please help me out.
The application consists of three forms: login, default, and remarks. The login page asks for a username and password, sets the Context.User equal to the authorized user, and redirects the page to default.aspx. The load event of default.aspx checks first if the Context.User.Identity.IsAuthenticated is true before showing the page. If false, the user will be redirected to the login page.
At the 'default' page, there's a hyperlink that opens the 'remarks' page in a new window (using javascript window.Open).
The problem is this: Whenever I show the remarks page using window.Open(), the value of the Context.User.Identity.IsAuthenticated becomes false and the value of the Context.User.Identity.Name is "". It seems that it uses a different Context.User object.
What can I do about this? Basically, I need the remarks page to point to the same Context.User as the default page's.