Welcome Guest, Not a member yet? Register   Sign In
help with cookies
#3

[eluser]vecima[/eluser]
thanks for the reply.

since posting i had changed cookie code in the "change" method in the "Style" controller to this:
Code:
$style_cookie = array(
                   'name'   => 'MyPreferredStyle',
                   'value'  => $newStyle,
               );

        set_cookie($style_cookie);
but the cookie still isn't being set. does it matter where i load the cookie helper?
currently I'm loading the cookie helper in the Style controller's constructor like this:
Code:
function Style()
    {
        parent::Controller();        
        
        $this->load->helper('cookie');
    }
and the same way in the other controllers' constructors (since they need to get_cookie, if i can get it to set one.


Messages In This Thread
help with cookies - by El Forum - 11-12-2007, 03:14 PM
help with cookies - by El Forum - 11-12-2007, 07:12 PM
help with cookies - by El Forum - 11-13-2007, 05:33 PM
help with cookies - by El Forum - 11-13-2007, 05:38 PM
help with cookies - by El Forum - 11-13-2007, 06:43 PM
help with cookies - by El Forum - 11-14-2007, 03:13 PM
help with cookies - by El Forum - 11-26-2007, 02:13 AM
help with cookies - by El Forum - 11-29-2007, 02:56 PM
help with cookies - by El Forum - 04-01-2008, 07:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB