Re: Strange url session behaviour after upgrade to 4.3 [message #182756 is a reply to message #182750] |
Wed, 04 September 2013 17:38 |
Tobiah
Messages: 30 Registered: April 2011
Karma:
|
Member |
|
|
On 09/03/2013 11:38 AM, Christoph Michael Becker wrote:
> Tobiah wrote:
>
>> The crux I think is that this works:
>>
>> session_id($_COOKIE['PHPSESSID']);
>> session_start();
>>
>> but plain session_start() does not.
>
> You may consider checking the PHP ini settings session.name and
> session.use_cookies.
>
session.name = PHPSESSID
session.use_cookies = 1
I wasn't looking too much at the php.ini because the sessions
work fine when loading normal pages. I know I'm using the PHPSESSID
cookie, because when I delete that cookie, my session goes away.
The only difference here is that instead of using a browser, I'm
using curl.
I know that curl is setting the cookie because of the code quoted
above.
Thanks,
Tobiah
|
|
|