Ask a Question related to ASP.NET Security, Design and Development.
-
Sadashiva Hegde #1
FormsAuthentication.Encrypt problem
Hi,
I have a strange problem. I get NULL reference out of
Encrypt function.
FormsAuthenticationTicket ticket = new
FormsAuthenticationTicket(1,
userName,
DateTime.Now,
DateTime.Now.AddMinutes(30),
false,
null,
FormsAuthentication.FormsCookiePath
);
string enc = FormsAuthentication.Encrypt(ticket);
Variable enc contains NULL reference.
Thanks in advance.
Sadashiv
Sadashiva Hegde Guest
-
FormsAuthentication Encrypt/Decrypt Problem/Issue
I'm using the C# sample from MSDN on how to authenticate against an active directory. What I notice is that I get the list of groups placed in the... -
DESPERATE: FormsAuthentication Problem
I am having a very perplexing problem with setting the user's roles. I have tried to figure this out for 2 days now. When the user logs in to the... -
FormsAuthentication.Encrypt - algorithm
Hajo, I have a few questions about above method. 1. AFAIK it is symatric encryption, what kind of algorithm(name) is used in this method? 2.... -
Encrypt in Perl, De-encrypt in Javascript
I got a javascript off the net which encrypt and de-encrypt HTML code so that nobody can read the public html file. here is the code of... -
Question on the FormsAuthentication.Encrypt method
I want to encrypt the values of my cookies. I found out that I could create a FormsAuthenticationTicket, and use the FormsAuthentication.Encrypt... -
Mark Berryman #2
RE: FormsAuthentication.Encrypt problem
I believe the problem is caused by the lack of user data defined for the
ticket. In your call to the FormsAuthenticationTicket constructor, you're
passing "null" for this. Try including some data (string). That should
work.
This posting is provided "AS IS" with no warranties, and confers no rights.
Mark Berryman Guest



Reply With Quote

