Custom HTTPHandler causing caching or session issues?

So i have a custom CMS running under .Net 3.5 written entirely in c#. The engine is optimized to render for mobile devices, but also server to normal web browsers. It also supports cookieless sessions. Great...

I've chosen not to cache anything (including browser data) in order to control the rendering completely from data. This has been all good until lately.

The engine implements a basic login function that simply logs the user state within a session object.

The behavior is rather strange. User will click through the site no problem. Then login. The login will either go through successfully or just redisplay the login screen, suggesting a cached page being returned or redisplayed... If the login is successful the concurrent page hits will switch arbitrarily between logged in and logged out state... Also suggesting either the session state is not accessible or a cached page being returned.

I have debugged the hell out of the thing.... including using fiddler and the like. When debugging the behavior disappears.

Huh?

One of the sites running on the engine is http://www.wiseguy.mobi (sorry customized for South Africa, so you'll probably not be able to get the password Text Message)!

Answers


Ok, so i've been a dumbass...

The issue was related to the fact that my IIS application was running 2 WorkerProcesses. Thus InProc Session state would return different session object states when the user hits either of the worker processes.

This is why the SQL SessionState persistance has resolved it. Either was its set up rather nicely now, and the issues have been resolved...


Need Your Help

Algorithm for drawing box plot for given data

statistics drawing plot boxplot

I have sorted array of real values, say X, drawn from some unknown distribution. I would like draw a box plot for this data.

Django DateTimePicker only shows up for superusers inside my app

django django-forms django-admin datetimepicker django-widget

I'm using django DateTimePicker widget -- AdminSplitDateTime() -- in event creating app, every thing goes fine when the loged in user has superuser permissions, but when normal user tries to access...