Off the top of my head, I would think you could add some logic to your
app_controller beforeFilter() in which you check for the existence of
the Auth session information.  If it doesn't exist, then trigger your
redirection to the login page.  Otherwise, just let the automatic
error get displayed.


On Jan 14, 9:40 pm, jst4fun <[email protected]> wrote:
> Hi,
> I had already asked this question in the IRC but I was told that it is
> not possible. I am just trying out my luck here in the group. The
> issue for me is that I want to provide separate messages for Auth
> component session timeout error and ACL permission denied error.
> Currently ACL uses the $this->Auth->authError variable to display
> permission denied message. What I want is if the session gets timed
> out then the system should display the login page and display the
> error "You are logged out from the system, Please Login again". If the
> the user tried to access the page which he do not have access to then
> the system should display the error "You do not have access to that
> page.". I guess that is more logical than displaying the error  "You
> are logged out from the system, Please Login again" for ACL permission
> denied error. So is it possible to set seperate message for acl and
> auth?  How is it possible? Hope to get a reply soon. Thanks
--~--~---------~--~----~------------~-------~--~----~
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