Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2005051

[PHP] Re: why are session only working with cookies? From: Jason Barnett (jason.barnett <email protected>)
Date: 05/13/05

Brian V Bonini wrote:
> Everything in php.ini seems to be correct. Is there soem thign I'm
> supposed to pass to 'configure' at compile time?

Session support is now built-in by default, so unless you specifically
compile without it then you should have support for sessions in your
build. Although yes, there are several php.ini settings that can modify
cookie behavior:

<?php

/**
http://php.net/manual/en/ref.session.php#ini.session.use-only-cookies

Don't force PHP to only use cookie propagation for session
*/
ini_set('session.use_only_cookies', 0);

/**
http://php.net/manual/en/ref.session.php#ini.session.use-trans-sid

Optional, may not even work for your version of PHP
*/
ini_set('session.use_trans_sid', 1);

?>

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