ID: 16263
Comment by: pmioni at hce dot it
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 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).
Previous Comments:
------------------------------------------------------------------------
[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");
...
?>
------------------------------------------------------------------------
[2008-04-14 10:19:49] olivieri at onyrix dot com
set in php.ini:
session.use_cookies = 1
this works for win xp + apache, and is more secure for id attack to
user sessions...
Bye
dino
http://www.onyrix.com
------------------------------------------------------------------------
[2008-04-08 16:31:33] mlavoice at netsync dot net
I have this issue PHP Version 5.1.6
------------------------------------------------------------------------
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