Form Authentication- Query

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top