473,382 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Session Data Loss because of session.cache_expire?

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
variable:

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

Thanks,

-Karl

Oct 13 '05 #1
1 2817
db_guy wrote:
<snip>
I have been studying the phpinfo() page and came across the
session.cache_expire variable. Here is what I found out about this
variable:

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?


You're confusing cache_expire with gc_maxlifetime
<http://in.php.net/session#ini.session.gc-maxlifetime>

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Oct 14 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul | last post by:
As session info is being passed to the URL, I want it to expire pretty quickly after n minutes of non activity on the user's part. I'm looking at session.cache_expire and think that this is what I...
6
by: Ruben van Engelenburg | last post by:
Hi all, I have a strange problem. I have a login procedure that uses a mysql database in which the users are stored. The login procedure is pretty straightforward. In every page I unclude my...
1
by: Ralph Freshour | last post by:
Can I adjust the PHP session timeout on my web site? Users are reporting timeout errors when they leave their computer for a period of time and then come back to resume using the site - is there...
2
by: Damien | last post by:
Hi to all, I'm currently re-designing our intranet : nice and lean CSS2, cleaned-up PHP 4.3.7, better-normalized MySQL ;o). So I've started using the $_SESSION variable instead of register_globals...
0
by: joseph conrad | last post by:
Hi, I tried to implement my own session handler in order to keep control on the process the drawback I foun it is not creating and storing in my cookie the PHPSESSID variable anymore. reading te...
1
by: ljayz | last post by:
i want my script to automatically expire session in a given period of time e.g 5mins (as a test). my problem is when ive set session_cache_expire(5); in my script, run it and wait for about 6-10mins...
1
by: Rogier | last post by:
Hello, I made a simple script with some session variables. When I work in the application, and when I don't use the application for some time, the session vars are erased... even when I set the...
3
by: mikeboston | last post by:
Hi, I am attempting to use php session variables on a server which is running Red Hat Linux, but the variables don't seem to be getting passed between pages. I have tried the same exact test...
1
by: KidQuin | last post by:
I am having problems with session value between pages. Happening in both firefox and IE7. I go between page by links so I know it's not header changes. I use session_start as the first line on the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.