Welcome Guest, Not a member yet? Register   Sign In
$this->input->cookie() does not take into account cookie prefix from config.php
#1

[eluser]ptrippett[/eluser]
Version 1.7

When a Cookie prefix has been set in the config.php file $this->input->cookie() does not take this into account when retrieving cookie from the Cookie globa array.

Does not work:
Code:
$value = get_cookie('myvar');
if (strlen($value) == 0) {
      $value = 'Some Value';
      set_cookie('myvar', $value, 31556926, '.mydomain.com', '/', '');
}

Works:
Code:
$value = get_cookie('myprefixfromconfig_myvar');
if (strlen($value) == 0) {
      $value = 'Some Value';
      set_cookie('myvar', $value, 31556926, '.mydomain.com', '/', '');
}

Is this by design or a bug?


Messages In This Thread
$this->input->cookie() does not take into account cookie prefix from config.php - by El Forum - 01-16-2009, 09:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB