[PHP] PHPSESSID on entry page only

2002-08-28 Thread Jason Morehouse

Hello,

Have a strange problem since upgrading to 4.2.2.

On a clients first visit to a site, the PHPSESSID gets written into the
URL, but not on any additional requests.

Has anyone had this problem?  It wasn't happening before the upgrade.

Running:

Redhat 7.3
PHP 4.2.2
Apache 1.3.26

php.ini reflects:

session.auto_start = 1
register_globals = On
session.use_trans_sid = 1

php_info() shows:
Session Support: Enabled
session.use_trans_sid = 1

Thanks in advance!
-Jason





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHPSESSID on entry page only

2002-08-28 Thread Todd Pasley


 On a clients first visit to a site, the PHPSESSID gets written into the
 URL, but not on any additional requests.

 Has anyone had this problem?  It wasn't happening before the upgrade.

 Running:

 Redhat 7.3
 PHP 4.2.2
 Apache 1.3.26

The same thing happens to me, however, sessions are working fine throughout
the entire site... just wondering.. is it actually inhibiting you from doing
anything?

todd.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHPSESSID on entry page only

2002-08-28 Thread Jason Wong

On Thursday 29 August 2002 08:00, Todd Pasley wrote:
  On a clients first visit to a site, the PHPSESSID gets written into the
  URL, but not on any additional requests.
 
  Has anyone had this problem?  It wasn't happening before the upgrade.
 
  Running:
 
  Redhat 7.3
  PHP 4.2.2
  Apache 1.3.26

 The same thing happens to me, however, sessions are working fine throughout
 the entire site... just wondering.. is it actually inhibiting you from
 doing anything?

That's because you have enabled session.use_trans_sid. On the first visit to 
the site, php doesn't know whether the browser accepts cookies, thus it 
attaches the PHPSESSID. Once it has determined that the browser accepts 
cookies on subsequent pages it doesn't use PHPSESSID anymore.

Disable cookies in your browser and you'll see that PHPSESSID is attached 
throughout your visit.



-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
If God had meant for us to be naked, we would have been born that way.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php