Many thanks for your answers.
If I use identity and sessions in my TG2 applications, the client
receive 2 cookie sessions. One named 'authtkt' I assume that was from
identity (by default) and another named what I have configured in
'beaker.session.key'.
Is there a way to tell identity that if you have a name to the session
in 'beaker.session.key' to use that session instead create another ?
On 21 Out, 15:39, "Mark Ramm" <[EMAIL PROTECTED]> wrote:
> > Is there anyway where I can read about this ?
>
> to get a pointer that always points to the current session:
>
> from tg import session
>
> To add stuff to the session:
>
> session['flash_message'] = msg
> session.save()
>
> generally the session is dictionary-like, but to get changes to
> persist you have to call .save()
>
> So, retrieving stuff from the session is as simple as:
>
> msg = session.get('flash_message')
>
> > 2 - After a user made a successful login, where I can see inside TG2
> > the current user id ?
>
> > Many thanks for all,
> > Helio Pereira
>
> --
> Mark Ramm-Christensen
> email: mark at compoundthinking dot com
> blog:www.compoundthinking.com/blog
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---