Bug #16980 Updated: session_start() somtimes ignores "session.use_cookies=1" in php.ini

From: Date: Wed, 24 Jul 2002 10:22:54 +0000
Subject: Bug #16980 Updated: session_start() somtimes ignores "session.use_cookies=1" in php.ini
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15028@lists.php.net to get a copy of this message
ID: 16980 Updated by: hholzgra@php.net Reported By: php@lowgradepain.com -Status: Open +Status: Bogus Bug Type: Session related Operating System: Linux 2.2.20 PHP Version: 4.2.0 New Comment: you have trans_sid feature enabled, so session ids are automaticly added unless a cookie is received session.use_trans_sid=0 in php.ini or using ini_set() before session_start() switches this off Previous Comments: ------------------------------------------------------------------------ [2002-05-02 18:32:50] php@lowgradepain.com It appears that the first script I hit on a site where session_start() is invoked causes the ?PHPSESSID=xxxxx in the URL, even though my php.ini file specifies: session.use_cookies = 1 After that first page, the session continues to work but the URL no longer contains the PHPSESSID parameter. This has not been the case in previous installations of PHP on the same server. I just recently upgraded from 4.1.1 to 4.2.0 and this issue began. php config line: ./configure' '--with-apache=../apache_1.3.23' '--prefix=/usr/local/pkg/php-4.2.0' '--enable-sysvsem' '--enable-sysvshm' '--with-imap=../imap-2001.BETA.SNAP-0106252013' '--with-pgsql=/usr/local/pgsql' '--enable-trackvars' '--disable-debug' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16980&edit=1

« previous php.bugs (#15028) next »