Posted on 25/09/2013 12:08:50
Regarding the session timeout, you should really avoid increasing the general session length. If data is kept in the session for a long period of time for all users, then you are likely to run into memory issues when the site gets a lot of traffic.
The session should only be kept alive if it is absolutely necessary. You can accomplish this by sending keepalive/heartbeat requests to the server. See solution here: http://stackoverflow.com/questions/1431733/keeping-asp-net-session-open-alive
I have used that approach with great success on websites that has forms with a lot of fields. The script was not included on all pages, just the pages with forms.
In your case, you could run the script on all pages, but only if something has been added to the cart.
Does it make sense? Let me know what you think :)