Re: [PHP] Session time-out value

2004-01-28 Thread Pushpinder Singh
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

[PHP] Session time-out value

2004-01-23 Thread Pushpinder Singh
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

Re: [PHP] Session time-out value

2004-01-23 Thread John W. Holmes
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 .htaccess

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
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

Re: [PHP] Session time-out value

2004-01-23 Thread Pushpinder Singh
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,

Re: [PHP] Session time-out value

2004-01-23 Thread John W. Holmes
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()!!).

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
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,

Re: [PHP] Session time-out value

2004-01-23 Thread Pushpinder Singh
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

Re: [PHP] Session time-out value

2004-01-23 Thread Matt Matijevich
snip 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. /snip Not 100% sure, but I think if you dont add ini_set() before all of your session_start() calls, session.gc_maxlifetime

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
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

Re: [PHP] Session time-out value

2004-01-23 Thread Pushpinder Singh
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

Re: [PHP] Session time-out value

2004-01-23 Thread Matt Matijevich
snip 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 ? /snip something like: php_value session.gc_maxlifetime 25000 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
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

Re: [PHP] Session time-out value

2004-01-23 Thread John W. Holmes
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 collector

Re: [PHP] Session time-out value

2004-01-23 Thread Matt Matijevich
snip 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

Re: [PHP] Session time-out value

2004-01-23 Thread John W. Holmes
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

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
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. When

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
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

Re: [PHP] Session time-out value

2004-01-23 Thread Pushpinder Singh
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,

Re: [PHP] Session time-out value

2004-01-23 Thread Jason Wong
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 your