Re: why are session only working with cookies?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux