ID:               16263
 Comment by:       karst at spectraweb dot nl
 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 apache/php configured to run as another user then "apache". I
tried to install php-xml and yum updated php, setting the owner of the
directory where the sessions are stored to "apache", NOT MY USER! 

This worked for me:

to check if this was the problem I did a chmod 777 to session directory
- and: it worked again

I changed the owner of the session directory to my apache user,
chmodded session directory to the initial 770 - and yay: it worked.


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

[2008-06-02 12:45:16] shashibanzal at hotmail dot com

While running a programme as a login for librarian, if the name of
programme is changed in the URL, it switches to the pgm entered now and
the borrower can perform all functions of librarian. This is not
correct. Session start has been used.

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

[2008-05-25 21:59:47] gsimanton at gmail dot com

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.

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

[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

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

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