FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Strange url session behaviour after upgrade to 4.3
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Strange url session behaviour after upgrade to 4.3 [message #182756 is a reply to message #182750] Wed, 04 September 2013 17:38 Go to previous messageGo to previous message
Tobiah is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: str_replace & assign to a var?
Next Topic: php exec ( ) DO NOT work for relative paths: Help?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Sep 18 13:26:18 GMT 2024

Total time taken to generate the page: 0.04227 seconds