Hi, I'm new to web2py & web development. I'm working through the "manual 
5th edition" - simple examples on Windows 10 64 bit executable version of 
web2py. Any time I try to assign values to session variable it does not 
appear in other parts of the app. e.g. 
def first():
    ...
    ...
    session.visitor_name=request.vars.visitor_name
    redirect(URL('second'))
    ...

default/second.html
    ...
    <h1>Hello {{=session.visitor_name or "anonymous"}}</h1>


The code is so simple I'm pretty sure I'm getting the code right. No errors 
are being reported.  If I just use request.vars.visitor_name in 
second.html, it works fine. 

Any ideas what might be going on or what I can try?  

Getting frustrated so early in the learning process!!

Thanks

Phil

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/3a8cbe2d-7851-4f75-bfab-9d71c2976d84%40googlegroups.com.

Reply via email to