tags:

views:

1168

answers:

2

Hi

We have a login control on a page named login.aspx which is set as the start page of the website. Once the user logs in, it is redirecting to default.aspx although our destinationpageurl is not set to any value.

If we set the destinationpageurl to somepage.aspx, it is working redirecting properly, but why is it redirecting to default.aspx by default, if the destinationpageurl is not set.

Thanks for any help, Animesh

+1  A: 

Is it just redirecting to / and it's actually IIS which is serving default.aspx, based on the default document settings?

Bryan
A: 

Redirection is required to set cookies. To write anything in cookie (session or anything) an action is needed to performed. Simlest action is redircetion. While performing redirection it writes authentication information.

Sharique