A Lightweight, Google Guice, Simple, and Powerful Web Application Framework that makes building modern Web Application a breeze! Fully open source, Apache V2 licensed.
Right now, the default RequestContext.setCookie store the cookie for ever (one year), however, it would be more appropriate to have a default that store it for the browser session, and add another optional parameter "persistent" when developers want the cookie to be persistent.
So,
fix HttpRequestUtil.setCookie to support the persistent flag
makes RequestContext.setCookie(name,value) set the persistent flag to false.
Warning: if you used RequestContext.setCookie before, the new default is not to persist the cookie after the user close the browser. use RequestContext.setCookie(name,value,true) to have the same effect as before.
Right now, the default RequestContext.setCookie store the cookie for ever (one year), however, it would be more appropriate to have a default that store it for the browser session, and add another optional parameter "persistent" when developers want the cookie to be persistent.
So,
Warning: if you used RequestContext.setCookie before, the new default is not to persist the cookie after the user close the browser. use RequestContext.setCookie(name,value,true) to have the same effect as before.