Last post Nov 30, 2011 10:59 AM by cts-mgraham
Nov 07, 2011 10:23 PM|jharwood|LINK
I am using the standard asp:login controls in a C# website being hosted on a Windows 2008 server. The login control allows the user to authenticate and redirect to the next page. However when I valid on that page the user is authenticated so I can get
the username so I can get a list of roles it fails. If I try a custom login control and set a session variable before the redirect the session variable is empty on the second page. The site works just fine in Firefox and Chrome. I only have issues with
IE (both 8 and 9). It is a .Net 4.0 application and the application pool on the server is set for .Net 4 Classic (Integrated is not an option due to a limitation with a required third party control). Any and all suggestions would be greatly appreciated.
Nov 08, 2011 06:09 AM|vytautas.ziurlis|LINK
I would check cookie availability - maybe your IE does not allow cookies.
Nov 08, 2011 08:09 AM|jharwood|LINK
Cookies are definatly enabled.
Nov 12, 2011 07:03 AM|cts-mgraham|LINK
Really, the only job for the client (the browser) is to send the
ASP.NET_SessionID cookie. I would use
Fiddler and follow this cookie as the navigation occurs. Also, try setting a session variable in the Session_Start and see if it is available at the time when you see your other value empty. I doubt that session is really failing on the server if it works
in the other browsers, and perhaps you never actually hit the point where you set your other session value for some reason? If you want to share a sample of the code, perhaps we can reproduce here to determine the cause.
Also, you might want to test with StateServer, or try cookieless session to see if that has any effect. HTH.
Nov 30, 2011 08:57 AM|jharwood|LINK
There is one problem with your theory. The problem is not just with my computer but with all versions of IE and on every computer I try it on.
Nov 30, 2011 10:59 AM|cts-mgraham|LINK
I don't believe I posed any theory, but just offered suggestions to troubleshoot it. Did you run fiddler and check the session cookie?