ID:               16263
 Comment by:       gsimanton at gmail dot com
 Reported By:      kur at natur dot cuni dot cz
 Status:           No Feedback
 Bug Type:         Session related
 Operating System: ANY
 PHP Version:      4.3.0-dev
 New Comment:

I found this on the php.net session page, and it worked for me:

<b> johnlonely at gmail dot com<b>
12-Oct-2005 02:32
Everytime I upgrade PHP to a new version, I used to recompile the
php.ini file. Everytime I create a website, I always kept the php.ini
file so that in the future I would be able to retrieve some Unique
properties of the php version I used. So the last php version I've seen
where session is sticking is version 4.2. I've been trying for two days
with no luck searching the manual and forum, when I tried something :

If you guys always fill the
session.cookie_path = /
to somewhere you the cookies should go, then leave the fuss. You'll
save two days! Leave it be!

[Session]
session.cookie_path = /

Happy sticking sessions.


Previous Comments:
------------------------------------------------------------------------

[2008-05-20 11:27:30] moi at discardmail dot com

I have the same problem on:
Windows XP,
Apache 1.3
PHP 5.2

But only in IE6. I have set all security setting s in IE6 to lowest and
the script

<?
session_start();
print session_id();
?>

still generates new session on every page load. The same script, the
same server and FF2 or IE7 work right.

Any ideas?

------------------------------------------------------------------------

[2008-05-14 11:12:52] pmioni at hce dot it

I had the same problem with Vista and EasyPHP. $_SESSION has problems
when you give it numbers as indexes.
So, for example, if you're trying to register the results of a
mysql_fetch_row or mysql_fetch_array (which contain numeric indexes) the
thing fails, because $_SESSION does not accept the indexes - the file
will be empty and nothing is saved in session

Try to save the results of mysql_fetch_assoc instead.

(Obviously, session permissions , path etc. must be correctly set).

------------------------------------------------------------------------

[2008-05-12 05:29:50] jcaprathe at gmail dot com

I just upgraded to leopard and now experience the same problem, i have
had php on just about every platform out there and never experienced
this until now. It creates a new session file every page i go to and
will not use the session, if i turn on session.use_trans_id it will use
the session and everything works. 
are there any mac users with this issue?

OS X 10.5.2
php 5.2.5
apache 2.2.8

------------------------------------------------------------------------

[2008-05-12 05:28:32] jcaprathe at gmail dot com

I just upgraded to leopard and now experience the same problem, i have
had php on just about every platform out there and never experienced
this until now. It creates a new session file every page i go to and
will not use the session, if i turn on session.use_trans_id it will use
the session and everything works. 
are there any mac users with this issue.

OS X 10.5.2
php 5.2.5
apache 2.2.8

------------------------------------------------------------------------

[2008-04-28 10:35:34] andras at kende dot com

I had this issue the following header fixed the issue:

<?php
session_start();
header("Cache-control: private");

...
?>

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/16263

-- 
Edit this bug report at http://bugs.php.net/?id=16263&edit=1

Reply via email to