> For sessions this is not really a problem since (IMO) a
session
> should get deleted when a browser is closed ... in many
ways
> that is the definition of a session right? Plus it
rarely causes
> problems in real life.
I disagree. The sessionfilter will not match many people's
expectations of what setting the max-age on the session
cookie will do
for you.
Say you want to write a site like slashdot where it
remembers you when
you come back the next day after closing/opening your
browser, are you
suggesting we cannot use the sessionfilter module? The
point of the
sessionfilter is that it providers the handy
cherrypy.session['userid']
type of access, and the tracking of the sessions in a
database. If I
can't use sessionfilter to define my user's login to last
for 30 days
or so, then in my app I going to rebuild all the
functionality of the
sessionfilter module, the sessions table and the the
cherrypy.session
object simply so that my cookie can say "expires"
instead of "max-age"?
I think that since sessionfilter advertises that it uses a
cookie to
store the session, then it should properly write out a
cookie on all
browsers - especially the most common browser. Otherwise
the time you
set in the max-age has no meaning.
Jeff
|