Hi all,

I've been using web2py for a couple of weeks and am slowly getting the
hang of it, but I'm still pretty much a newbie to web programming.

I've been trying to figure out how to handle sessions but have made
little progress in the past couple of days. The manual, (and website)
states that web2py handles sessions for you... I took this to mean
that, beyond using session.connect(...) to initiate/create a session
in the database, all you needed to do was store the session data in
various session variables like session.example_data1="some user",
session.exampledata2 ="same user's preferred colour scheme", and these
session variables would get sent and retrieve as they were created and
then referenced.

This doesn't seem to be the case though (forgive my naivety). The
sessions are definitely getting created in the DB, and I can see the
cookies have the same unique_keys as the sessions created but, beyond
this, I'm stuck. So would someone please explain briefly how to send
and retrieve session data to/from the [mysql] database to utilise it
within the application, and maybe provide a quick example?

Thanks in advance.

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

Reply via email to