Check the cookies you have stored in your browser. I once had similar problem, when I had 2 cookies of the same name set, but different in path, one had "/directory" the other one "/directory/"

Justin French wrote:

on 17/01/03 1:24 AM, 1LT John W. Holmes ([EMAIL PROTECTED]) wrote:


Is there any kind of load balancing on your server?

It's a single server, so to the best of my knowledge, no.



If you watch the session
files in /tmp, are they getting erased?

No, because they reappear and page or two later. I confirmed this with a
simple incrementing session counter, and the results were bizarre. You
would expect the number to increase in sequence:

0,1,2,3,4,5,6,7,8,9,10...50

But instead, I got:

0,1,2,3,0,4,5,1,6,7,2,8,9,3,10,11,12,13,14,15,16,17,18,4

I can see two sessions in there... one that gets to 18, the other getting to
4.

Again, this is NOT a repeatable bug... right now, it just counted perfectly
up to 25 before I got bored... :)


Justin




---John Holmes...

----- Original Message -----
From: "Justin French" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 2:55 AM
Subject: [PHP] intermittent session loss



Hi,

I think I may have made some headway with my server problems. I loaded

the

site onto another account within the same machine, and I can't seem to
replicate the "document contained no data" error at all.

BUT I did notice that once I login (it says "you are logged in as justin"
across the top of the screen), if I refresh the same page a few times, it
will MOSTLY say "you are logged in as..." but OCCASIONALLY it says "click
here to login"...

The server does use trans-sid, but in my case, it's using cookies... the
session doesn't get LOST (because it's "back" next time I refresh), but I

do

appear to be "logged out" until I refresh again.

VERY strange.

To investigate further, I turned off cookies, and tried again... after 5

or

so refreshes, I lost the session ID out of the URL.


Whilst I can't repeat the problem on the original account, I have a

feeling

these two issues are related.


What's likely to cause this?


Here's the Session section of phpinfo():

--
Session Support enabled
Directive Local Value Master Value
session.auto_start Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file /dev/urandom /dev/urandom
session.entropy_length 256 256
session.gc_maxlifetime 900 900
session.gc_probability 1 1
session.name PHPSID PHPSID
session.referer_check no value no value
session.save_handler mm mm
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_trans_sid 1 1
--

My LAN server's values (not compiled with trans-sid) are:
--
Session Support enabled
Directive Local Value Master Value
session.auto_start Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
--

Biggest difference I can see (not that I really know what I'm looking for)
is that locally, the save_handler is 'mm' (memory?), and on the server,

it's

files. And the entropy stuff, which I don't understand :)


So, what could cause the session to drop (then kick back in again) by

simply

refreshing the page a few times?


Many thanks in advance,

Justin French





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


---
[This E-mail scanned for viruses]






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

Reply via email to