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
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 have to
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...
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
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
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,
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
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 **
--
# 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
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()` to
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
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
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
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 of
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, check that
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
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.ini
This
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,
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
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 data. This
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 am
* 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
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-mail:
23 matches
Mail list logo