looking for session management info

6 views
Skip to first unread message

jvanasco

unread,
Apr 19, 2006, 4:51:08 PM4/19/06
to TurboGears
can anyone point me to the session management components in TurboGears

I'd like to have TG handle a few URL dispatches for a large webapp that
is a predominantly mod_perl ( there are some items that are handled via
php. everyone talks using a shared session database and serializes
info via YAML/JSON. )

I was thinking that I'd probably override the TG session store - but I
could conceivably just pull in the webapp session data into a new
SQLObject, and just access it directly.

my gut feeling though, is that extending TG to use a session system
that is standardized with perl/php/whatever else would be better
though, as it could be more seamless for production use

Alberto Valverde

unread,
Apr 19, 2006, 5:44:13 PM4/19/06
to turbo...@googlegroups.com

On 19/04/2006, at 22:51, jvanasco wrote:

>
> can anyone point me to the session management components in TurboGears
>

Take a look at the sessionfilter.py at thirdparty/cherrypy/cherrypy/
filters and how CherryPy filters are implemented, specially the
PostgreSQL storage one.


> I'd like to have TG handle a few URL dispatches for a large webapp
> that
> is a predominantly mod_perl ( there are some items that are handled
> via
> php. everyone talks using a shared session database and serializes
> info via YAML/JSON. )
>
> I was thinking that I'd probably override the TG session store - but I
> could conceivably just pull in the webapp session data into a new
> SQLObject, and just access it directly.
>

This could be a little bit tricky as you're outside TG's implicit db
transaction machinery. You'd have to begin and commit/rollback any
transaction manually and cross your fingers ;)


> my gut feeling though, is that extending TG to use a session system
> that is standardized with perl/php/whatever else would be better
> though, as it could be more seamless for production use

Yep, this looks like a better approach

Alberto

Alberto Valverde

unread,
Apr 19, 2006, 6:59:28 PM4/19/06
to turbo...@googlegroups.com
You might also find this interesting: http://tinyurl.com/guyns
Reply all
Reply to author
Forward
0 new messages