Sveučilište u Zagrebu  |  Filozofski fakultet  |  Služba za informatiku  |  links

Manual authentication for ASP.NET

(thanks to the


...since I can’t show you how to authenticate against the service–your implementation will almost certainly be different–we will skip that section. But to set the cookie, all we need to do is to revert to the ASP.NET 1.1 way of setting up the login.


    if (Request.QueryString["ReturnUrl"] != null)
        FormsAuthentication.RedirectFromLoginPage(m_tbUsername.Text, persistentCookie);
        FormsAuthentication.SetAuthCookie(m_tbUsername.Text, persistentCookie);

komentare molim ovdje