Using session makes sense. If for some reason you prefer cookies rather 
than server-side sessions, there is an option to store sessions in cookies 
-- see near the end of this section: 
http://web2py.com/books/default/chapter/29/04#session. In that case, you 
won't have to change any code and still have the convenience of working 
with the session object.

Anthony

On Sunday, March 10, 2013 3:24:14 AM UTC-4, Jaime Sempere wrote:
>
> Hi, 
>
> I have an application for facebook where I need to store some variables. 
> The application is like a little forum but with just one page and 
> everything is loaded via Ajax calls, so I need to store for example, the 
> user that is logged in, the page of the forum where he is right now... etc. 
> Now I am using 4 variables stored in sessions, I would like to know if this 
> practice is considered correct. 
>
> Also, as sessions are stored in server side, I was thinking to use cookies 
> instead of sessions. Would this be better in terms of performance and 
> storage? If not I would like to keep using sessions, I found them easier to 
> handle, and I would avoid to rewrite the code.
>
> Thanks in advance
>

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to