Re: [web2py] Cookies and Sessions

2012-04-27 Thread Anthony
> > Oh, one more thing - if you want to delete the sessions, errors, and > caches, click the 'clean' button in admin. > That's useful if you want to pack the application, but you may not want to do that on production, as you might delete active sessions, errors that you haven't viewed yet, etc

Re: [web2py] Cookies and Sessions

2012-04-27 Thread Derek
Oh, one more thing - if you want to delete the sessions, errors, and caches, click the 'clean' button in admin. On Friday, April 27, 2012 7:40:55 AM UTC-7, Yago wrote: > > That makes it all really clear, thank you so much Anthony. The browser > deletes the session cookie when you close it, but t

Re: [web2py] Cookies and Sessions

2012-04-27 Thread Derek
Session cookies would be deleted after browser close, so you'd be assigned a new session. The files are not deleted because the server has no way of knowing if the person has restarted their browser or not. On Friday, April 27, 2012 7:40:55 AM UTC-7, Yago wrote: > > That makes it all really clea

Re: [web2py] Cookies and Sessions

2012-04-27 Thread Yago
That makes it all really clear, thank you so much Anthony. The browser deletes the session cookie when you close it, but there's still the server session. What happens to that? I mean when you open the browser again do you get assigned another session or do you 'reconnect' to the old one mainta

Re: [web2py] Cookies and Sessions

2012-04-27 Thread Anthony
> > > *2. When are they deleted?* > > When you do session.forget() > session.forget() does not delete the session file -- it just tells web2py not to save any changes to the session during the current request. Anthony

Re: [web2py] Cookies and Sessions

2012-04-26 Thread Keith Edmunds
On Wed, 25 Apr 2012 15:49:23 -0700 (PDT), varelay...@gmail.com said: > I'm quite new to web2py and a noob at it. I've been struggling with the > difference between cookies and sessions...But I have plenty of questions > about them and how to use them(in web2py) I think you should approach them f

[web2py] Cookies and Sessions

2012-04-26 Thread Yago
I'm quite new to web2py and a noob at it. I've been struggling with the difference between cookies and sessions. For what I've read the main difference is that you store cookies on the clients side and sessions on the server side, also that cookies expire and sessions get erased when you close