Hey,

I have a little problem with the Auth Messages when logging into an
app. I reworked everything so Auth Errors are displayed correctly
(like "Please login to view the requested site") but I'm still having
trouble with one thing:

In my app the session time is set to about 120 Minutes. After that,
when you click on sth. that is protected by Auth & Acl, the user is
logged out and needs to log in again. That's fine I think, but when
the user is logged out because of a session timeout, the SAME error
Message (defined in app controller, AuthError) is displayed to the
user.

So my question is:
Is there ANY way to determine wether a user was not logged in before
and wants to see content that he has to log in for OR the user
requested a site within the app but the session was timed out?

I could alter the message container to display a "Why was I logged
out?" where I explain that a user either needs to log in because of
protected content or because the session was timed out, but I that's
just a workaround...

Also, is there any chance to modify the session time or even KILL the
session timeout within the app by a controller function? I have a
function "auto login" (component) which would be nice to use without a
session time limit...

Any help is MUCH appreciated (because it's on of the last tasks I have
to complete to finish a very important milestone ;) )

Regards,

DD

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