On 7/8/06, bracchetto <[EMAIL PROTECTED]> wrote:
>
> i've put this code in my AppController:
>
> if (empty($_SESSION['user'])){
>   $_SESSION['user']=true;
>   // first access
> }
>
> but if user disable cookie this doesn't work.
> Somebody know another way to do this?

hmm, I think you'd be better off using Cake's built in Session
component, check out the manual:
http://manual.cakephp.org/chapter/16

you could then do:

$this->Session->read ('user')

hth

jb

>
>
> >
>


-- 


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to