Page 1 of 1

Exception -Session attribute 'cartSummary' required

Posted: Mon Sep 17, 2012 12:42 pm
by srini
Hi,

I am trying to find out where the time is set for items in cart to expire for anonymous users. When I try to do 'remove' the cart item in an expired session (browser was left out on cart page), I am getting 'org.springframework.web.HttpSessionRequiredException: Session attribute 'cartSummary' required - not found in session'.

Please advise.

Thanks,
Srini.

Re: Exception -Session attribute 'cartSummary' required

Posted: Fri Nov 16, 2012 4:21 pm
by jefffischer
I believe you're referring to the sessionTimeout value for you container. The easiest way to set this is in your web.xml, like this:

<session-config>
<session-timeout>15</session-timeout>
</session-config>

This is a 15 minute session timeout. Include something like this in your web.xml and set it to whatever time you want.