Cheers David.
For what it's worth, I implemented solution #2.
I've pasted the code below, on the off chance it helps someone else.
In make_cookie_headers():
old:
cookies = [COOKIE_FMT % (i, cv[i*m:i*m+m], ed) for i in
xrange(num_cookies)]
new:
#Note: If you want the session data to be removed, set the
session['remember_login'] to False somewhere in your code..
if self.data.has_key('remember_login') and self.data['remember_login']
== False:
cookie_fmt = ' ' + COOKIE_NAME_PREFIX + '%02d="%s"; Path=' +
COOKIE_PATH + '; HttpOnly'
cookies = [cookie_fmt % (i, cv[i*m:i*m+m]) for i in
xrange(num_cookies)]
else:
cookies = [EXPIRE_COOKIE_FMT % (i, cv[i*m:i*m+m], ed) for i in
xrange(num_cookies)]
On Dec 8, 4:20 pm, David Underhill <
doun...@gmail.com> wrote:
> On Tue, Dec 7, 2010 at 21:59, Chris Lacy <
gdaych...@gmail.com> wrote:
> > Thanks for getting back to me David.
>
> > Funnily enough, Suggestion #2 is basically the workaround I was thinking
> > about implementing. I was just curious if there was a 'proper' solution in
> > place for this currently.
>
> Not yet, but I'm glad the second suggestion is reasonable enough that you
> thought of it too :).
>
>
>
> > I will just go ahead with that for now I think, but if/when you implement
> > proper support for this feature in gae-sessions, I'll definitely take a look
> > at it ;)
>
> > Thanks again.
>
> Your welcome; enjoy :).
>
> ~ David
>
>
>
>
>
>
>
>
>
> > On Wed, Dec 8, 2010 at 3:22 PM, David Underhill <
doun...@gmail.com> wrote:
>
> >> Chris,
>
> >> Thanks for your kind words - I'm glad gae-sessions has been serving you
> >> well :).
>
> >> Another user asked about this a few months ago, so I'll point you to that
> >> discussion:
>
> >>
http://groups.google.com/group/gae-sessions/browse_thread/thread/594e...
>
> >> I proposed two solutions there; the second is pretty straightforward to
> >> implement and might be just what you're looking for. The first solution is
> >> more "correct" but also a bit more complicated. I plan to implement this
> >> (or something similar) for the next release.
>
> >> All the best,
>
> >> ~ David
>