if auth.user and not session.defaults: session.defaults = {....}

then use session.defaults as a dict

On Tuesday, 25 September 2012 18:19:11 UTC-5, Maya Iyengar wrote:
>
> Hi,
>
> I'm trying to set some defaults for the user based on their user id, which 
> needs to be set at the beginning of each session. The user may or may not 
> need to login (based on whether or not they've selected "Remember me for 30 
> days." So where is the best place for me to put the logic that sets the 
> session variables? I will need access to the user's ID in order to 
> determine what tables they have permissions to.
>
> Thanks so much,
> Maya
>

-- 



Reply via email to