Re: Is this code thread safe?

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

 



On 6/13/07, Christian Cantrell <christian.cantrell@xxxxxxxxx> wrote:
I'm pretty sure this code is thread safe, but I just want to be 100% sure.
I have a class called ViewHelper with a static function called is_signed_in.
 All it does is check the session for the existence of a particular
variable, and if it's there, it returns true, otherwise false.

Since the function is static, is there any way this code is not thread safe?
 Is there any way I could be checking someone else's session if the requests
are concurrent?

Thanks,
Christian


   That should be perfectly alright, as each thread should have its own SESSID.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--
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