[Zope-CMF] Using sessions in CMF

Gitte Wange gitte at mmmanager.org
Thu Oct 9 11:49:23 EDT 2003


Torsdag 09 oktober 2003 05:43   skrev Janko Hauser:
> On Thu, 09 Oct 2003 16:24:42 +0200
>
> "Gitte Wange" <gitte at mmmanager.org> wrote:
> > Hello,
> >
> > Thanks to all the creative ideas I got in the thread 'Understanding
> > the login mechanism' - no I haven't found a solution yet :-(
> >
> > But in my search for a solution I have comed to the idea of trying
> > to use sessions. It seems like a good idea :-)
> >
> > Some years ago I mingled around with PHP and I created a login
> > method that used sessions - is it possible to do the same thing in
> > CMF (Zope)? If so - how ?
> > I guess you have to make some extensions to CookieCrumbler and the
> > cookie-based login - this is easily done with the
> > PluggableUserFolder.
> >
> > Where do I start digging around to implement session stuff?
> > I have looked at the "Sessions" chapter in the Zope Book and I think
> > I got the hang on sessions.
> > But what info do I need to store in the session object in order to
> > make sure people are properly logged in ?
> >
> > Hope there's someone out there with some hints :)
>
> Most of the current login methods are already using sessions,
> especially cookiecrumbler is introduced to wrap basic_auth in a
> session.
>
> So I do not really understand the question.

I want to be able to access the login information from the session object so I 
can just pass around a session id instead of login information ....
At this point there is no userdata in the session object - or am I wrong ?

-- 
Gitte Wange
Technical Manager

Email: gitte at mmmanager.org
Web: http://www.mmmanager.org
Tlf: +45 36 46 20 02

I øvrigt er der ingen grund til at vi, hver gang der er et
relevant problem, farer frem som rabiesramte bavianer, og råber
på opmærksomhed med den ene bombastiske udtalelse efter den
anden.
    -- Thomas Alexander Frederiksen




More information about the Zope-CMF mailing list