Hi I've been trying to get AuthComponent to use Cookies instead of Session 
variables.
I want to store user-information encrypted onto client-side cookies since 
they're a lot
easier to scale than Sessions.

I tried to do this by copying AuthController to 
/app/Controller/Component/AuthController.php
and then added 'Cookie' to its $components array, and finally removed the 
'static' keyword from
all the functions in the class using Cookie component. This is not giving any 
errors (I haven't
tried logging in yet because the other parts of my app aren't ready yet, but I 
think it should work now).

What I wanted to know is why CakePHP has chosen Session variables over 
encrypted client-side
storage of information for scalability purposes? At least the AuthComponent 
should have a 'cookies'
parameter to switch between Sessions and Cookies.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to