ID: 16263 Comment by: moi at discardmail 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 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? Previous Comments: ------------------------------------------------------------------------ [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"); ... ?> ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ 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