Author: andieje | Posted on: 4/17/2009 8:40:29 AM | Views : 320

Hi

I am confused as to what is happening in the OnLeave event of the Forms Authentication module. I believe that the event looks to see if the web page has a stutus code of 401 /unaithorised. if the web page request is unauthorised and the webpage request does not contain the string ReturnUrl (which would tell you the page was the login page) then the page gets the login url from the forms authentication module and appends the request path to it like so

login.aspx?returnurl=requestPath

The user is then redirected to this page. There is some other string manipulation going on which I don;t fully understand but I believe this is the gist of it.

Is this correct?

The above scenario refers to pages that don't have a valid authentication ticket and the user is redirected to the login page. I was wondering what happens in the authentication module when the user views the login page. After a successful login they get redirected to the page in ...

Go to the complete details ...