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

Home » Imported messages » comp.lang.php » session_start() should return FALSE but does not
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: session_start() should return FALSE but does not [message #170298 is a reply to message #170295] Wed, 27 October 2010 11:03 Go to previous messageGo to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 27/10/2010 12:13, +mrcakey escribió/wrote:
> ""Álvaro G. Vicario""<alvaro(dot)NOSPAMTHANX(at)demogracia(dot)com(dot)invalid> wrote in
> message news:ia8tql$rb7$1(at)news(dot)eternal-september(dot)org...
>> El 27/10/2010 9:49, Rene escribió/wrote:
> <snip>
>> The manual page does not state what "successfully started" means. I've
>> been testing it myself in PHP/5.3.3 under Windows XP and I've been unable
>> to make it return FALSE. It returns TRUE when it starts a new session, it
>> returns TRUE when it resumes a previous session, it returns TRUE when
>> session_start() was already called, it returns TRUE when the session
>> directory does not exist... If there's a situation when it will eventually
>> return FALSE, I haven't been able to discover it.
>>
>
> Did you try setting "use only cookies" to true and then disabling cookies in
> your browser?

Good point. I've just tried and it returns TRUE. Of course, when you
think about it, it makes sense: PHP has no way to find out whether the
browser will accept the cookie or not.

(My guess is that it the feature works fine in Linux but I cannot test
it right now.)


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Study Abroad Scholarship For Study in Australia...
Next Topic: Biosphere Technology -
Goto Forum:
  

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

Current Time: Tue Nov 26 22:24:57 GMT 2024

Total time taken to generate the page: 0.05482 seconds