set the userModel
and set $sessionKey as
$sessionKey = 'Auth.YourModelName';

then you can separate your log-in sessions and login with models
respectively.



2013/4/23 Alex Bovey <[email protected]>

> On Fri, Apr 19, 2013 at 4:39 PM, Alex Bovey <[email protected]> wrote:
> > Hi all,
> >
> > What's the best technique to use if I have two separate areas of my site
> and
> > I want the Auth component to use two separate models to log in to those
> > areas?
> >
> > I have tried setting the $this->Auth->authenticate['Form']['userModel']
> from
> > the controller but that doesn't seem to have any effect...
>
> Hi all - any thoughts on this one?  Thanks! Alex
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

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


Reply via email to