So I want to read a cookie using the Cakephp's Cookie class. First, I
tried to import only the cookie class and read the cookie, but I was
getting an error stating that the cipher key cannot be null. So I
imported the Configure class, set the key property of the cookie
instance to the respective cipher key, but the cookie is returning a
different result from what it's set to. Any ideas?\
The override constructor class looks like:

class Member extends AppModel {
        function __construct( $id = false, $table = NULL, $ds = NULL ) {
                App::import('Component','Cookie');
                App::import('Core','Configure');

                $conf = new Configure();
                $cookie = new CookieComponent();

                $cookie->key = $conf->read("Security.cipherSeed");
                var_dump($cookie->read('sel_app'));
...

                parent::__construct($id,$table,$ds);

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to