> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to