That sounds like a good proposal. I've just pushed a patch to yesod-core to address this, it will be included in the next release (not too long from now).

Michael

On Thu, May 12, 2011 at 3:47 AM, <vagif.verdi@gmail.com> wrote:
If Expires is not set explicitly, then it defaults to end-of-session. The
length of a session can vary depending on browsers and servers, but generally
a session is the length of time that the browser is open for (even if the user
is no longer at that site).

I propose if clientSessionDuration is set to 0 then do not set Expires time.

On Wednesday, May 11, 2011 05:14:26 PM you wrote:
> reply-all, sorry Vagif:
>
> On Thu, May 12, 2011 at 7:39 AM,  <vagif.verdi@gmail.com> wrote:
> > Currently yesod provides clientSessionDuration settings.
> >
> > But i want to change it to expire session when browser is closed.
> >
> > How do i do that ?
>
> How do other web frameworks handle this?
>
> > Regards,
> >
> > Vagif Verdi
> >
> > _______________________________________________
> > web-devel mailing list
> > web-devel@haskell.org
> > http://www.haskell.org/mailman/listinfo/web-devel

_______________________________________________
web-devel mailing list
web-devel@haskell.org
http://www.haskell.org/mailman/listinfo/web-devel