Form Authentication- Query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I am using default.htm as my startup page.
But now recently there is one change that is form authentication.
After using form auth, now after successfull login it is going directly to
default.aspx.
any chance to control this programatically? Or only round about ways?

Regards,
Sachi
 
Hi,

In the code where you validate the username and password, instead of using
Formsauthentication.redirectfromloginpage, use
Formsauthentication.SetAuthcookie(txtusername.text, true)
Response.Redirect("default.htm")

where txtusername.text is the username that the user enters.

that should help.
 
Back
Top