By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,825 Members | 1,388 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,825 IT Pros & Developers. It's quick & easy.

sessions dropping

P: n/a
Hi,

I've been having some trouble with sessions. I have a pw-protected section of
my website where members can log in and use tools to edit their websites. The
problem is sessions seem to disappear at random. I can't seem to isolate a
particular set of circumstances under which this happens.

I realize this is a vague problem, but does anyone have any tips as to how I
could go about isolating the cause? I'm open to wild guesses :o)

session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_lifetime 0 0
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.referer_check no value no value
session.save_path /tmp /tmp
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off

I'm using PHP 4.3.0 on Linux/Apache, testing most with IE 6.

TIA,
Shawn

--
Shawn Wilson
sh***@glassgiant.com
http://www.glassgiant.com
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 02 avr. 2004, Sir Shawn Wilson <sh***@glassgiant.com> claimed in
news:40***************@glassgiant.com:
Hi,

I've been having some trouble with sessions. I have a pw-protected
section of my website where members can log in and use tools to edit
their websites. The problem is sessions seem to disappear at random.
I can't seem to isolate a particular set of circumstances under which
this happens.

I realize this is a vague problem, but does anyone have any tips as to
how I could go about isolating the cause? I'm open to wild guesses :o)

session.gc_maxlifetime 1440 1440

Don't your session files disappear after 1440 seconds of non use? (mtime is
used to test)

Also make sure session.save_path is not set to a path (default is /tmp)
where files are autaumatically deleted after some time...

I strongly advise you to read http://www.php.net/manual/en/ref.session.php
John
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.