It's hard to say.  Sounds like maybe the scope of the "session" variable?
It's hard to tell only seeing snippets of the code.

Also,     print session.__dict__   is helpful.  It'll tell you what's in
the session variable at any given point.


On Wed, Jun 6, 2012 at 10:06 AM, Mauro Alexandre <upma...@gmail.com> wrote:

> Not solved :(
>
>
> 2012/6/6 Scott Gelin <scott.ge...@gmail.com>
>
>> I haven't had any issues with sessions, but I have read that if you do
>> not explicitly set web.config.debug = False there could be issues.  It
>> doesn't look like you do that in the code snippet, I would set that below
>> your import statements
>>
>> On Tue, Jun 5, 2012 at 10:02 PM, Mauro Alexandre <upma...@gmail.com>wrote:
>>
>>> Example: http://dpaste.com/755799/
>>>
>>>
>>> 2012/6/5 Mauro Alexandre <upma...@gmail.com>
>>>
>>>> Sorry my english, i speak portuguese (pt_br).
>>>>
>>>> I have one session in code.py
>>>>
>>>> session = web.session.Session(app,
>>>> web.session.DiskStore(os.path.join(curdir,'sessions')),initializer={'loggedin':
>>>> False,'user': None})
>>>>
>>>> When i set values in session.loggedin or session.user , works fine in
>>>> print(session).
>>>>
>>>> Buth i have another method "GET", i try use session vars but session
>>>> vars is None or default value.
>>>>
>>>> print(session.logged) = False
>>>> print(session.user) = None
>>>>
>>>> The session not persist in other methods.
>>>>
>>>> I need help, thanks !
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "web.py" group.
>>> To post to this group, send email to webpy@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> webpy+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/webpy?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "web.py" group.
>> To post to this group, send email to webpy@googlegroups.com.
>> To unsubscribe from this group, send email to
>> webpy+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/webpy?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To post to this group, send email to webpy@googlegroups.com.
> To unsubscribe from this group, send email to
> webpy+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/webpy?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to