B
Benny Ng
Hi,all,
Now I let every .aspx page inherited from BasePage, and let the
authentication work at there.
sample code:
if (session["user"]=="")
{
//Redirect to login page
Response.Redirect ("login.aspx");
}
is this method right? and suitable for the .NET development's habit?
Because this method is study from my traditional ASP development.(likes
included a authentication page in every ASP pages)
And now I prepare to used this style
"FormsAuthentication.RedirectFromLoginPage" authentication mode to do the
auth module.Any special things I need to take care?
And any suggestion are appreciated.
Thank you very much.
Benny Ng
Now I let every .aspx page inherited from BasePage, and let the
authentication work at there.
sample code:
if (session["user"]=="")
{
//Redirect to login page
Response.Redirect ("login.aspx");
}
is this method right? and suitable for the .NET development's habit?
Because this method is study from my traditional ASP development.(likes
included a authentication page in every ASP pages)
And now I prepare to used this style
"FormsAuthentication.RedirectFromLoginPage" authentication mode to do the
auth module.Any special things I need to take care?
And any suggestion are appreciated.
Thank you very much.
Benny Ng