>
> Err... I thought that I knew what cookies and session meant, but I am not 
> so sure right now (for me session was always stored in server, using *"
> session.name"* in web2py... cookies are stored in user browser... and I 
> am not very sure of how to use them, I think they are set using 
> response.cookies and I can get them using request.cookies.value['name']).


> Anyway as session are stored in server I was thinking "ok, maybe is better 
> to use cookies and not store anything in server". This is my main question. 
> As I said I'm storing about 4 strings in 4 sessions variables. 
>

session is an abstraction for storing data specific to a given user/browser 
session. It can be stored on the server in either the file system or the 
database, or it can be stored in a cookie. If you choose cookie storage, 
you don't have to do anything to manage the session cookie (i.e., via 
response.cookies) -- just use the session as normal, and web2py will handle 
the cookies automatically.

Anthony

-- 

--- 
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to