Session Data Loss because of session.cache_expire?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi, we have a php-based application that is hosted by Yahoo!
Webhosting.  Ever since the application was created, it has been
plagued by periodic session data loss.  Here's a typical example:

We will successfully input 7 clients into the system, but upon
submitting the 8th, all session data fails to enter the MySQL database.
 After viewing the record in the database, the row is empty except for
data that was not stored in a session.

I have been studying the phpinfo() page and came across the
session.cache_expire variable.  Here is what I found out about this

session.cache_expire specifies time-to-live for cached session pages in
minutes, this has no effect for nocache limiter. Defaults to 180.

Forgive my ignorance, but does this mean that after 180 minutes, a
session will expire and be destroyed?  If so, is there any way to keep
the session alive, atleast until after the process has been completed
(ex: the client has been added to the system)?

Also, our application utilizes session data extensively- is there
anything that we can do to foster session health (like perform a
session_destroy() after every process to reset things?)

Here is the server info:

PHP 4.3.11
MySQL 3.23.49
FreeBSD 4.8



Re: Session Data Loss because of session.cache_expire?

Kimmo Laine wrote:
Quoted text here. Click to load it

Unless next_page.php generates PHP, the script with this include will
only get HTML.

Quoted text here. Click to load it


    if (isset($_GET['foo'])) {
      echo '<?php echo $_GET[\'foo\']; ?>';
    } else {
      echo '<?php echo \'Not available\'; ?>';

File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot

Site Timeline