Re: [PHP] Session timeout

2007-12-14 Thread Richard Lynch
On Thu, December 13, 2007 6:36 am, Dani Castaños wrote: > I've read a bit about PHP session timeout. Is it configurable?? I > mean, > If i want user logged out after 10 minutes of innactivity... where i > can > to set it up?? Is it possible to expire session configuring php.ini. > I know i will ha

Re: [PHP] Session timeout

2007-12-14 Thread Dani Castaños
Hi all, I've found the key of all... at least this is what I think ;-) (And, again, at least, for Debian users) The thing is I want to have control on what "exactly" a session lasts, and advice the user some time before to renew the session if he wants. If you only set gc_maxlifetime with ini_s

Re: [PHP] Session timeout

2007-12-13 Thread Richard Heyes
You can simulate that, because not always you'll be able to do "init_set" ini_set(), and when? -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- P

Re: [PHP] Session timeout

2007-12-13 Thread Cesar D. Rodas
You can simulate that, because not always you'll be able to do "init_set" You can save in a session var the TTL (time to live) $_SESSION['TTL'] = time() + TIMEOUT; Then before do anything you see if the session is still valid if ( $_SESSION['TTL'] < time() ) close_session(); I hope this be he

Re: [PHP] Session timeout

2007-12-13 Thread Victor Matherly
You could always just set you own cookie that expires after 10 min. Have your script redirect to a login page if the cookie has expired or reset the cookie if its still valid. - Original Message - From: "Dani Castaños" <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Thursday,

Re: [PHP] Session timeout

2007-12-13 Thread Richard Heyes
There are various configuration options for this (which you change in the php.ini or by using the ini_set() function): session.gc_maxlifetime session.cookie_lifetime Before sending my first mail, i've changed those parameters... and nothing seems to change. I set up also session.cache_expire

Re: [PHP] Session timeout

2007-12-13 Thread Dani Castaños
There are various configuration options for this (which you change in the php.ini or by using the ini_set() function): session.gc_maxlifetime session.cookie_lifetime Before sending my first mail, i've changed those parameters... and nothing seems to change. I set up also session.cache_expi

Re: [PHP] Session timeout

2007-12-13 Thread Richard Heyes
I've read a bit about PHP session timeout. Is it configurable?? I mean, If i want user logged out after 10 minutes of innactivity... where i can to set it up?? Is it possible to expire session configuring php.ini. I know i will have to write code to do whatever when the session expires... Ther

Re: [PHP] session timeout

2004-10-04 Thread Marek Kilimajer
Philip Thompson wrote: Hi all. I have users log into my site to perform certain actions. However, I want to create a timed session so that it automatically logs them out after a certain amount of time. I am using `session_set_cookie_params()` to create the amount of available time that the user

Re: [PHP] session timeout

2004-10-04 Thread Greg Donald
On Mon, 04 Oct 2004 09:54:15 -0500, Philip Thompson <[EMAIL PROTECTED]> wrote: > I have users log into my site to perform certain actions. However, I > want to create a timed session so that it automatically logs them out > after a certain amount of time. I am using > `session_set_cookie_params()`

Re: [PHP] session timeout

2004-10-04 Thread afan
# store entry time to session $_SESSION['entry_time'] = time(); # checking if session expired if((time() - $_SESSION['entry_time']) > 3600) #session expired after 1 hour { header('login.php'); exit; } -afan > Hi all. > > I have users log into my site to perform certain actions. However, I

Re: [PHP] session timeout

2004-04-16 Thread Richard Harb
Friday, April 16, 2004, 4:35:30 PM, you wrote: > Hello Marek, >I had similar trouble with my PHP application. I used an .htaccess > file with the same line. But it still did not work. I guess I even tried > ini_set() function. > I have a question with this point : I can only answer part o

Re: [PHP] session timeout

2004-04-16 Thread Pushpinder Singh
Hello Marek, I had similar trouble with my PHP application. I used an .htaccess file with the same line. But it still did not work. I guess I even tried ini_set() function. I have a question with this point : 2. No other application can access your session storage. Other applications could

Re: [PHP] session timeout

2004-04-16 Thread Marek Kilimajer
pete M wrote: Am trying to increae the session lifetime to 8 hours ish using this code ini_set('session.gc_maxlifetime',28800); does not work ? any ideas Pete There are 3 conditions that must be met: 1. You must set it before session_start() 2. No other application can access your session stor

Re: [PHP] session timeout

2003-11-13 Thread CPT John W. Holmes
From: <[EMAIL PROTECTED]> > > How do I set the session timeout - eg someone leaves a broweser for say > > half an hour then have to log in again.. > > As I'm on an intranet I want to increase ro 3 hours > > Pete, Change the default configuration of the option session.cookie_lifetime > in the php.in

Re: [PHP] session timeout

2003-11-13 Thread Marek Kilimajer
pete M wrote: How do I set the session timeout - eg someone leaves a broweser for say half an hour then have to log in again.. As I'm on an intranet I want to increase ro 3 hours Pete increase the value of session.gc_maxlifetime (in seconds), session.cookie_lifetime should be still 0 (untill

Re: [PHP] session timeout

2003-11-13 Thread CPT John W. Holmes
From: "pete M" <[EMAIL PROTECTED]> > How do I set the session timeout - eg someone leaves a broweser for say > half an hour then have to log in again.. > > As I'm on an intranet I want to increase ro 3 hours Exact method: Save the current time on each request in the session. On each request, chec

Re: [PHP] Session Timeout

2003-10-29 Thread Marek Kilimajer
Better solution would be to display your login form together with all get and post variables in hidden fields. If the user logs in sucessfully, your script can continue with processing the form data. [EMAIL PROTECTED] wrote: right of course, 1440 is only 24 minutes. On Tuesday, October 28, 200

RE: [PHP] Session Timeout

2003-10-28 Thread daniel
right of course, 1440 is only 24 minutes. > On Tuesday, October 28, 2003 6:46 PM wrote: > >> Hi there, i am experiencing a session timeout problem with one of my >> projects. One of the users had left their machine for less than 15 > mins, >> maybe a bit more and it logged them out when posting da

RE: [PHP] Session Timeout

2003-10-28 Thread Pablo Gosse
On Tuesday, October 28, 2003 6:46 PM wrote: > Hi there, i am experiencing a session timeout problem with one of my > projects. One of the users had left their machine for less than 15 mins, > maybe a bit more and it logged them out when posting data. This isnt good > as they lost their data. I was

Re: [PHP] Session Timeout

2003-08-30 Thread Curt Zirzow
* Thus wrote Seth Willits ([EMAIL PROTECTED]): > From what I see, the default timeout for a session is 1440 seconds or > 24 minutes. I was gone for nearly an hour, came back, and the session > was still valid. Must the value set in the config file be different > than 1440, or am I misundersta

Re: [PHP] Session Timeout

2003-08-30 Thread Tom Rogers
Hi, Saturday, August 30, 2003, 1:55:02 PM, you wrote: SW> From what I see, the default timeout for a session is 1440 seconds or SW> 24 minutes. I was gone for nearly an hour, came back, and the session SW> was still valid. Must the value set in the config file be different SW> than 1440, or

Re: [PHP] Session timeout

2001-07-10 Thread py
look in php.ini py - Original Message - From: Frédéric Mériot <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 1:33 PM Subject: [PHP] Session timeout > How to set the session timeout? > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-