NYCPHP Meetup

NYPHP.org

[nycphp-talk] Session basics

Chris Shiflett shiflett at php.net
Fri Aug 19 12:52:33 EDT 2005


Brian O'Connor wrote:
> Why is it that in my php.ini I have session.use_cookies set to 1, but
> when I view a site of mine it appends the links to say
> ?PHPSESSID=xxxxxxxxxxxxx, even though my browser has cookies enabled?

You probably have session.use_trans_sid enabled. PHP has to rewrite URLs 
on the first page, because it hasn't had a chance to determine whether 
the client has cookie support enabled.

Hope that helps.

Chris

-- 
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/



More information about the talk mailing list