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
Hi all!
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
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
, December 13, 2007 7:36:06 AM (GMT-0500) America/New_York
Subject: [PHP] Session timeout
Hi all!
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
this be helpful for you!
On 13/12/2007, Richard Heyes [EMAIL PROTECTED] 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
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 **
--
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 is logged in.
But my
# 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
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
How can I make my site auto log out a user like I've seen on many sites? Right now,
the users session never expires unless manually logging out or the browser is closed.
Also, should I change anything to cover any security issues? I havn't changed much
from the default, only enough to get it
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
Pete, Change the default configuration of the option session.cookie_lifetime
in the php.ini
by default:
; Lifetime in
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,
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 wondering how i can dynamically set the
session
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
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 misunderstanding session.gc_maxlifetime? I'd like
for the user
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
What is the optionin php.ini for session timeout?
here is my session setting.
session.save_handler = files ; handler used to store/retrieve data
session.save_path = /home/apache/newmob/tmp; argument passed
session.use_cookies = 1 ; whether to use cookies
How to set the session timeout?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
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
33 matches
Mail list logo