Erik P.
Member
I need to use a php library to access and manipulate cookies. My PHP environment does not populate the $_COOKIE[] array super global. I notice cookie access is done mostly through the cookie helper but in one place in Session.php:412, in start(), the session ID is retrieved through $_COOKIE and not through the helper:
Is there a specific reason for not using the cookie helper class to access the cookies here or is it an oversight? All other cookie access I see is using the helper class.
If all cookie access was done through the cookie helper class my job would be as simple as replacing it with one which got it's cookies through the library instead of through $_COOKIE. I'd rather not override XenForo_Session:start() to make it use the cookie helper. It's a maintenance headache.
Any comment on this? If it is an oversight, can it be changed for 1.4 final?
Code:
$sessionId = (isset($_COOKIE[$cookie]) ? $_COOKIE[$cookie] : '');
Is there a specific reason for not using the cookie helper class to access the cookies here or is it an oversight? All other cookie access I see is using the helper class.
If all cookie access was done through the cookie helper class my job would be as simple as replacing it with one which got it's cookies through the library instead of through $_COOKIE. I'd rather not override XenForo_Session:start() to make it use the cookie helper. It's a maintenance headache.
Any comment on this? If it is an oversight, can it be changed for 1.4 final?