Il giorno 11/giu/2011, alle ore 14.12, Łukasz Wróblewski ha scritto: > > > ----- Oryginalna wiadomość ----- >> Od: "Roberto De Ioris" <[email protected]> >> Do: "uWSGI developers and users list" <[email protected]> >> Wysłane: sobota, 11 czerwiec 2011 13:59:46 >> Temat: Re: [uWSGI] session >> >> You mean for sessions data storage ? >> > > I mean cookie session. > Handling cookies and information associated with a user session in uWSGI. > > Ideally it would be something like this: > uwsgi.session_get (KEY) > uwsgi.session_set (KEY, VALUE) > uwsgi.session_delete (KEY) > uwsgi.session_id > > > I'm currently using this http://beaker.groovie.org/ > However, testing shows me that by simply adding SessionMiddleware double > reduces req / s. > I thought about cache in uwsgi only a lack of support cookies... > >
I started working on this ticket (both PSGI and Rack supports a .session store, so it is a good thing to have it independently of python), but have you thought about using flask/werkzeug-style (client-side) sessions ? http://werkzeug.pocoo.org/docs/contrib/securecookie/#module-werkzeug.contrib.securecookie expecially for clustered environments they kick asses as you can avoid session-replication problems between nodes. -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
