Session variables not working.
As my Sitefinity user control loads, it calls an .aspx file, through an image tag, that displays an image and sets a value as a session variable.
I have stepped through this .aspx file, and the value is successful added to the session. However, once I get to the user control code, the session variable is null.
Is Sitefinity messing around with the IIS sessions and/or session variable?
What do I need to do, to get my session variables to work?
Code that sets the session variable in the .aspx file:
Session.Add("Captcha", strCaptchaText)
return txtCaptcha.Text.ToUpper() == Session["Captcha"].ToString().ToUpper() ? true : false;
I thought I I found the issue, I was using the Visual Studio internal web server, rather than my IIS server.
However, I am still seeing this issue with IIS. Not sure why I am loosing session variables when I run/debug my instance of the web application.