Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am using following code for form authentication in login page.
C#
System.Web.Security.FormsAuthentication.SetAuthCookie(userId, false);


It is working fine on staging with all browsers but After hosting in Production I am trying to access login, It is working fine in all browsers except IE.

In IE, httpcontext.current.user.identity.name value in login page is as expected but after redirecting from login, Its value is empty.

Please assist me.
Posted
Updated 27-Apr-15 21:16pm
v3
Comments
Andy Lanng 27-Apr-15 6:45am    
Are cookies on?
The membership provider saves data in cookies
Gaurav K Mishra 27-Apr-15 9:02am    
Yes cookies are on in IE.
F-ES Sitecore 28-Apr-15 4:56am    
Use the browser's dev tools (or a plug-in) to inspect the cookie and its values. Compare it with the cookies in a browser that works to see if there are any differences. Also use a tool like Fiddler to examine the requests and responses to ensure the cookie is sent\received ok....again compare the trace of a working browser to that of IE to see if you can find any differences in behaviour.
Ankur\m/ 30-Apr-15 6:48am    
That's how I would also go about finding the issue. You can post this as an answer.

try to check what is cookies's domain name ( you may find in config file)
 
Share this answer
 
Use Fiddler to investigate further .
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900