No more 'Object reference not set to an instance of object' errors

by naspinski 21. May 2009 10:49

Sessions were timing out causing errors if you were logged in too long

By using the magic that is jQuery, you should now stay logged in while on the site and not time out. Previously, if you were on the site and sat idle for 5-10 minutes (which is strange since the default timeout for Asp.Net is 20 minutes) and tried to do something, you would get that error. Now I simply refresh your Session after a period of being idle if you are still on the site; a warning will pop-up notifying you if the refresh did not work.

How it was done

Wrote up a simplified version of how this was done here: Automatically refresh your user's Session behind the scenes using jQuery and Asp.Net.

Tags: ,

Bug Fix

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen