davidcahan
asked on
Login and FormsAuthentication
Can someone explain to me in very lay terms what each line of this code is actually doing (including all the comma-seperated variables). I'm using it in my login and it works, but I'd actually like to know what is going on.
FormsAuthentication.Initia lize()
Dim isPersistent As Boolean = True
Dim ticket As FormsAuthenticationTicket = New FormsAuthenticationTicket( 1, strUserName.Text, DateTime.Now, DateTime.Now.AddHours(1), isPersistent, strUserName.Text, FormsAuthentication.FormsC ookiePath)
Dim hash As String = FormsAuthentication.Encryp t(ticket)
Dim cookie As HttpCookie = New HttpCookie(FormsAuthentica tion.Forms CookieName , hash)
FormsAuthentication.Redire ctFromLogi nPage("def ault.aspx" , False)
Thanks
FormsAuthentication.Initia
Dim isPersistent As Boolean = True
Dim ticket As FormsAuthenticationTicket = New FormsAuthenticationTicket(
Dim hash As String = FormsAuthentication.Encryp
Dim cookie As HttpCookie = New HttpCookie(FormsAuthentica
FormsAuthentication.Redire
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.