[Python]- Sessions

91 views
Skip to first unread message

Saturnino Mateus

unread,
Nov 16, 2014, 4:57:10 PM11/16/14
to google-a...@googlegroups.com
Do you guys use any module to handle sessions, or use cookies without expiration date?

Vinny P

unread,
Dec 2, 2014, 1:27:56 AM12/2/14
to google-a...@googlegroups.com
On Sun, Nov 16, 2014 at 3:57 PM, Saturnino Mateus <s.nata...@gmail.com> wrote:
Do you guys use any module to handle sessions, or use cookies without expiration date?


A few years ago there was a semi-popular Python library to manage GAE sessions; you might find it useful: https://github.com/dound/gae-sessions . It looks abandoned now but you can still try it out.

  
-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

John Louis Del Rosario

unread,
Dec 2, 2014, 9:35:28 AM12/2/14
to google-a...@googlegroups.com
The webapp2 framework has great support for sessions that work with the Datastore.
https://webapp-improved.appspot.com/api/webapp2_extras/sessions.html
Its docs are a bit sparse though, expect to dive into the source code every now and then.

Devraj Mukherjee

unread,
Aug 5, 2015, 12:14:35 AM8/5/15
to google-a...@googlegroups.com
On Wed, Dec 3, 2014 at 1:35 AM, John Louis Del Rosario <joh...@gmail.com> wrote:
The webapp2 framework has great support for sessions that work with the Datastore.
https://webapp-improved.appspot.com/api/webapp2_extras/sessions.html
Its docs are a bit sparse though, expect to dive into the source code every now and then.



Following up on the state of this issue. Is using third party frameworks still the only way of managing sessions for Python apps?

Or is there any news on an official Appengine solution?

Ryan (Cloud Platform Support)

unread,
Aug 5, 2015, 9:27:27 AM8/5/15
to Google App Engine
Salutations Devraj,

There is no official solution. webapp2 is extremely popular and would be a good starting point for you. It boils down more to what you want from it and the tool that best meets your needs.

Devraj Mukherjee

unread,
Aug 5, 2015, 9:37:41 PM8/5/15
to google-a...@googlegroups.com
On Wed, Aug 5, 2015 at 11:27 PM, Ryan (Cloud Platform Support) <rbru...@google.com> wrote:
Salutations Devraj,

There is no official solution. webapp2 is extremely popular and would be a good starting point for you. It boils down more to what you want from it and the tool that best meets your needs.


Thanks for writing back Ryan.

We use a couple of other frameworks to handle REST requests etc. which need to share the session. I so wish that webapp2's session was a middleware and we could wrap the other frameworks with it.

At present we use gae-sessions which works well, other's have suggested beaker (which we have used in the past).

Will keep checking in; incase an official solution for application local authentication becomes available.
Reply all
Reply to author
Forward
0 new messages