a few seconds ago|LINK
hi!! i am using Forms Authentication and i am little confused... should i use SETAutCookie mthod ore the ticket method....
i mean should i use.. FormsAuthentication.SetAuthCookie(email_txt.Text, true);
OR
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, "aut_ticket", DateTime.Now, DateTime.Now.AddDays(2), true, email_txt.Text);
if i use the FormsAuthenticationTicket ticket is it necessary to encrypt the ticket..... my website is not an e-commerce website
string encryptedTicket = FormsAuthentication.Encrypt(ticket);
and i think creating an authentication ticket would be more efficient.... and also i would just have to check if that ticket is present on every page.... for an authenticated user...
AND ALSO, how can i check whether the ticket is present or not.....
Can Someone Please Guide me which one would be better
Thanks in ADvance.....

New Topic/Question
Reply



MultiQuote


|