On 06/21/2010 05:32 PM, Noah Kantrowitz wrote:
> You are probably going to want to subclass the normal LoginModule which has
> a cookie-based session system in it. It normally only checks the HTTP creds
> when you go to /login, after which point it creates a session token and
> hands it to you in a cookie.
>
> --Noah
I found this snippet in trac's auth.py:
elif req.incookie.has_key('trac_auth'):
authname = self._get_name_for_cookie(req, req.incookie['trac_auth'])
Should I check for that cookie first and then fall back on logging in?
This is my first time dealing with python and it looks like the session
information is not nearly as simple as in PHP. That and non whitespace
whitespace irritates the hell out of me.
ASE
--
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-dev?hl=en.