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.
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
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
) ) close_session();
I hope 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
> &g
t
Sent: Thursday, 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 possi
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
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
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 ex
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 se
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
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()`
# 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
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
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
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
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
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
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 run
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
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: "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
> 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:
; Lifetim
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
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
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
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
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 time
* 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
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
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 t
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
session.name
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.ph
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]
33 matches
Mail list logo