Re: [PHP] Adjusting Session Times

2010-09-14 Thread Floyd Resler
Tedd, I really like your solution. The idea of storing the expiration in the SESSION makes it easier for me and makes it more flexible. Someone else had provided a solution that would actually allow me to take it down to a user level if I needed to. I loved the idea for flexibility bu

Re: [PHP] Adjusting Session Times

2010-09-14 Thread tedd
At 10:26 AM -0400 9/14/10, Floyd Resler wrote: We just got a client whose requirement is that user sessions expire after 30 minutes of inactivity. Our other clients are happy with not having their sessions expire during the work day (i.e. life is 8 hours). I am using a MySQL database to store

Re: [PHP] Adjusting Session Times

2010-09-14 Thread Andrew Ballard
On Tue, Sep 14, 2010 at 10:26 AM, Floyd Resler wrote: > We just got a client whose requirement is that user sessions expire after 30 > minutes of inactivity.  Our other clients are happy with not having their > sessions expire during the work day (i.e. life is 8 hours).  I am using a > MySQL da

Re: [PHP] Adjusting Session Times

2010-09-14 Thread chris h
> My thought is to adjust the session expiration in the table based on the > client currently logged in. > > I don't know if there's a better way, but I would probably just do that. The expiration would be set to whatever the client's preference is, and default to 8 hours if he doesn't have one.

[PHP] Adjusting Session Times

2010-09-14 Thread Floyd Resler
We just got a client whose requirement is that user sessions expire after 30 minutes of inactivity. Our other clients are happy with not having their sessions expire during the work day (i.e. life is 8 hours). I am using a MySQL database to store the session data. My thought is to adjust the