Re: Basic Security
From: Eirik Eldorsen (NOoSPAAAMeirik_at_eldorsens.nettsider.no)
Date: 07/29/04
- Next message: Kevin Spencer: "Re: Class Library"
- Previous message: Don Wash: "Make Reports that can pass parameters at Run-time? :: ASP.NET + CR.NET"
- In reply to: Chris Kennedy: "Basic Security"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Jul 2004 14:49:56 +0200
If you want to control where the user is redirected on login, use this code:
if (FormsAuthentication.Authenticate(txtUsername.Text, txtPwd.Text))
{
FormsAuthentication.SetAuthCookie(txtUsername.Text, false);
Response.Redirect("nextpage.aspx");
}
else
{
....
}
"Chris Kennedy" wrote in message
> When a user goes directly to the login page, when they login, it attempts
to
> redirect them to default.aspx, which doesn't exist. I suppose I could
create
> a default aspx page but really I would like to know what is going on
behind
> the scenes. Why doesn't .net apply the same redirect rules to login page
as
> it does to application pages. Regards, Chris.
- Next message: Kevin Spencer: "Re: Class Library"
- Previous message: Don Wash: "Make Reports that can pass parameters at Run-time? :: ASP.NET + CR.NET"
- In reply to: Chris Kennedy: "Basic Security"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|