Hi,
how do i get the time for how much a particular session was active. i.e
difference between session start and session end.
I am able to do it by getting the difference of logintime and
logouttime. but what it the user
1) doesn't logout and close the browser
2) or the sessions end after t
In your php.ini, session.gc_maxlifetime=1440;
Best regards,
Yang Shiqi
-Original Message-
From: Jacques [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 17, 2005 1:48 PM
To: php-general@lists.php.net
Subject: [PHP] Session time out
What is the life time of a PHP session object
What is the life time of a PHP session object (variable)? Which conditional
test can I perform to check if the session object has timed out?
Jacques
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Depending on the time out time set in the php.ini, they will
expire after that many minutes of inactivity, or when the browser is
closed.
-Dan Joseph
-Original Message-
How do sessions 'time out'? Especially if using and SID in the query
string (not a good idea, I know, but
How do sessions 'time out'? Especially if using and SID in the query
string (not a good idea, I know, but this bypasses cookie timeout and so
removes it from timeout methods for this discussion)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes, I have used a .htaccess file in a Web Directory to prevent http
access to its contents.
Thanks again !!
-Pushpinder Singh
On Saturday, January 24, 2004, at 12:59 AM, Jason Wong wrote:
On Saturday 24 January 2004 05:46, Pushpinder Singh wrote:
I tried to keep a .htaccess file in the D
On Saturday 24 January 2004 05:46, Pushpinder Singh wrote:
>I tried to keep a .htaccess file in the Dir that my application
> esided in and kept the session lifetime of about 8 hrs. However I
> checked to see after 2 hr and it had already kicked me out of the
> system. Please advise.
Does you
Hello All,
I tried to keep a .htaccess file in the Dir that my application
esided in and kept the session lifetime of about 8 hrs. However I
checked to see after 2 hr and it had already kicked me out of the
system. Please advise.
Thanks in advance
Pushpinder Singh
On Friday, January 23, 2004
John W. Holmes wrote:
If you just change the session.save_path variable for one site on your
box to something like /tmp/onesite, do you still have to write your own
garbage routine? Wont the autamatic php garbage collection know to only
cleanup sessions in the /tmp/onesite directory?
Is the gar
John W. Holmes wrote:
From: "John Nichel" <[EMAIL PROTECTED]>
php_value session.gc_maxlifetime "number of seconds"
I'm really curious to see if any of this really works. I know it _should_,
but...
Assuming a shared/virtual server where all session files for all sites are
in the same location. W
> If you just change the session.save_path variable for one site on your
> box to something like /tmp/onesite, do you still have to write your own
> garbage routine? Wont the autamatic php garbage collection know to only
> cleanup sessions in the /tmp/onesite directory?
Is the garbage collection
I'm really curious to see if any of this really works. I know it
_should_,
but...
Assuming a shared/virtual server where all session files for all sites
are
in the same location. When the garbage collector is triggered by a
request
to the site with this setting in .htaccess, does it honor this se
From: "John Nichel" <[EMAIL PROTECTED]>
> php_value session.gc_maxlifetime "number of seconds"
I'm really curious to see if any of this really works. I know it _should_,
but...
Assuming a shared/virtual server where all session files for all sites are
in the same location. When the garbage colle
Pushpinder Singh wrote:
Actually the user is only allowed to get to any page if he has logged
on. Thus all the remaining pages check to see if a session has been
registered, if so then the person is allowed to to go on with his
session. If the session did not exist he is redirected to a login p
Also if I were to create a .htaccess
file that is kept in the same dir as the application, what do I need to
include in that file ?
something like:
php_value session.gc_maxlifetime 25000
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Actually the user is only allowed to get to any page if he has logged
on. Thus all the remaining pages check to see if a session has been
registered, if so then the person is allowed to to go on with his
session. If the session did not exist he is redirected to a login page.
Do you still sugges
Pushpinder Singh wrote:
Thanks much John,
I have about 8 different pages that are all session linked. Do I have
to add this ini_set() at the beginning of all the session_start() calls
on all these pages.
You should only have to do it for the first time session_start() is
called, but not knowi
I have about 8 different pages that are all session linked. Do I have
to add this ini_set() at the beginning of all the session_start() calls
on all these pages.
Not 100% sure, but I think if you dont add ini_set() before all of your
session_start() calls, session.gc_maxlifetime would get se
Thanks much John,
I have about 8 different pages that are all session linked. Do I have
to add this ini_set() at the beginning of all the session_start() calls
on all these pages.
Thanks again and I am sorry if my question sounded lame.
Pushpinder Singh
On Friday, January 23, 2004, at 11:49
Pushpinder Singh wrote:
Thanks John,
I dont have rights t change this value for my webserver. I only want
this value to be changed for my application. Is there a way to take care
of this ? Thanks again !!
Pushpinder
Before you call session_start()
ini_set ( "session.gc_maxlifetime", "num
From: "Pushpinder Singh" <[EMAIL PROTECTED]>
> I dont have rights t change this value for my webserver. I only want
> this value to be changed for my application. Is there a way to take
> care of this ? Thanks again !!
You can use an .htaccess file or (maybe) ini_set() (before
session_start()!!)
Thanks John,
I dont have rights t change this value for my webserver. I only want
this value to be changed for my application. Is there a way to take
care of this ? Thanks again !!
Pushpinder
On Friday, January 23, 2004, at 11:28 AM, John Nichel wrote:
Pushpinder Singh wrote:
Hello All,
I
Pushpinder Singh wrote:
Hello All,
I am using php and Mysql in my application. The problem is that the
system automatically logs the user out of the system after 24 minutes. I
would like to extend the session lifetime to about 2-3 hrs. I know there
is a way to do it using a .htaccess file kept
From: "Pushpinder Singh" <[EMAIL PROTECTED]>
> I am using php and Mysql in my application. The problem is that the
> system automatically logs the user out of the system after 24 minutes.
> I would like to extend the session lifetime to about 2-3 hrs. I know
> there is a way to do it using a .htac
Hello All,
I am using php and Mysql in my application. The problem is that the
system automatically logs the user out of the system after 24 minutes.
I would like to extend the session lifetime to about 2-3 hrs. I know
there is a way to do it using a .htaccess file kept in the same folder
as t
Got a quick and easy question that I'm not sure about. What I need to do is
calculate how long someone has been in a chatroom, then update a members
table to add some "money" to their account. Something like this:
For every hour they're in the chatroom: 5 cents
Thanks,
Stephen Craton
http://www.m
> How do I set the amount of time before the sessions time out?
See session.gc_maxlifetime in the php.ini file.
Kirk
--
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 administrator
I've noticed that the user sessions automatically time out after X
amount of minutes without me putting any extra code in the scripts.
How do I set the amount of time before the sessions time out?
I've looked all over my 3 books on PHP/MySQL and haven't found a damn
thing
Thanks!
28 matches
Mail list logo