Re: Auth Component (1.2b), writing Auth.redirect to session before it is destroyed

2008-02-25 Thread [EMAIL PROTECTED]
And why I do not need authError on the login screen is simply that it is the login screen... I can inform the user in other ways. If they are not allowed but not asked to login (low perms for example) that is when the Flash is more useful to me. sorry for the 97 consecutive posts. On Feb 25, 6:0

Re: Auth Component (1.2b), writing Auth.redirect to session before it is destroyed

2008-02-25 Thread [EMAIL PROTECTED]
Oh, I forgot. There is one small down-side. There is no Flash message at the login screen with 'authError'. It is the same request so not really possible I think? Not a problem for me really but I thought I should mention it. --~--~-~--~~~---~--~~ You received thi

Re: Auth Component (1.2b), writing Auth.redirect to session before it is destroyed

2008-02-25 Thread [EMAIL PROTECTED]
OK, I had a go at bending Auth to my will. http://bin.cakephp.org/saved/29102 The tweaks (two of them) are in the startup method. lines 301-305 and 316-320. To make it work you will also need an altered version of requestAction. Put this in app_controller.php or be brave and hack it into object

Re: Auth Component (1.2b), writing Auth.redirect to session before it is destroyed

2008-02-25 Thread [EMAIL PROTECTED]
Thanks for your reply. Your other thread was an interesting read. I would still like to call this a faulty behavior (does not make any sense to me) but the problem is probably more in when the actual sessons are dumped and recreated than with Auth itself. Possible it works this way to be consisten

Re: Auth Component (1.2b), writing Auth.redirect to session before it is destroyed

2008-02-25 Thread Baz
Much better :) I've also experienced problems with sessions expiring with Auth: http://groups.google.com/group/cake-php/browse_thread/thread/91c716ad396513e1/2c744b3bedde6781?lnk=gst&q=session+expire+auth#2c744b3bedde6781 Bottom line, there's not much that can be done. Apparently, the "session" s

Re: Auth Component (1.2b), writing Auth.redirect to session before it is destroyed

2008-02-25 Thread [EMAIL PROTECTED]
The reason I did not post any code is that it is pretty much straight out of the popular tutorials linked to in Frequent Discussions. It is pretty stripped down now that I have started poking around. No ACL or anything like that. The "wrong page" is defined as: not the page that AuthComponent is

Re: Auth Component (1.2b), writing Auth.redirect to session before it is destroyed

2008-02-22 Thread Baz
You can't make statements like "wrong page" etc, if no one has a clue as to what your setup is. At least show your Auth setup. I haven't expirenced your issues (I'm not even sure what your issues are), but there is some funny behavior when the session expires. Basically, I lose my Flash Message w

Auth Component (1.2b), writing Auth.redirect to session before it is destroyed

2008-02-22 Thread [EMAIL PROTECTED]
Hi, I got interested in poking around in AuthComponent since I found some odd redirecting when sessions expire. Have I managed to cause this somehow or is this a problem known to you all? I have read a lot about strange redirections but my problem has been boiled down to a very specific behavior.