a simple <?=phpinfo() ?> will disclose to you all the server variables that have been set on your current server

As for you adjusting them, its fairly host dependent, and if yours does support custom php configurations its usually just a matter of you adding your own php.ini file to your base web directory [ie one level up from /htdocs or /html], generally..


Talk to your host about it though as thats not right, looking at my setup the expire time for sessions by default from 'out of the box' PHP5.0.5 as an example is:

--
; Define the probability that the 'garbage collection' process is started
; on every session initialization.
; The probability is calculated by using gc_probability/gc_divisor,
; e.g. 1/100 means there is a 1% chance that the GC process starts
; on each request.

session.gc_probability = 1
session.gc_divisor     = 100

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440
--

Thats purely the gc [garbage collection] and I doubt that would affect you if you are talking about a session you've just created expiring within a fairly short time..

--
; Document expires after n minutes.
session.cache_expire = 180
--

This looks more positive, I'm assuming this is a setting for expire time of the sessions.


You might want to look into php docs and check it out..


Good luck :-)


--oOo---oOo---
   Julien Bonastre
   The-Spectrum Network CEO
--oOo---oOo---
----- Original Message ----- From: "Ron Piggott" <[EMAIL PROTECTED]>
To: "PHP DB" <php-db@lists.php.net>
Sent: Saturday, October 29, 2005 10:59 AM
Subject: [PHP-DB] My $_SESSION['''] variables are expiring!


My $_SESSION['variable'] 's are expiring.  How do I find what my web
site hosting company has their length set to so I may have them
adjusted?

They just expired while I was actively using the associated scripts.
Once the web site hosting computer lost track of the user session number
generated when I logged in the script couldn't access my settings!

Ron

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Reply via email to