Anyone familiar with RosSoft's Cookie Component ? I am trying to use
it with CakePHP 1.1.14.4797.

The error I am getting is

Notice: Undefined property: CookieComponent::$crypt in E:\Program Files
\xampp\htdocs\dts\app\controllers\components\cookie.php on line 97

Fatal error: Call to a member function decrypt() on a non-object in E:
\Program Files\xampp\htdocs\dts\app\controllers\components\cookie.php
on line 97

and the lines of code (partial) is

        function read($name,$unserialize=true)
        {
                if(isset($_COOKIE[$name]))
                {
                        if ($unserialize)
                        {
                                $string=$_COOKIE[$name];
                                if (get_magic_quotes_gpc())
                                {
                                        $string = stripslashes($string);
                                }

                                if ($this->crypt_key)
                                {
                                        
$string=$this->crypt->decrypt($this->crypt_key,$string);
                                }
                                [EMAIL PROTECTED]($string);
                                return $string;
                        }
                        else
                        {
                                return $_COOKIE[$name];
                        }

                }
                else
                {
                        return null;
                }
        }

I have no clue what is wrong, can anyone lead me in the right
direction?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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