Thanks Andy. On 13 Oct 2011, at 14:38, AD7six wrote:
> > > On Oct 13, 2:13 pm, Jeremy Burns <[email protected]> wrote: >> I'm developing a corporate application that'll be used as part of >> people's day jobs. It is not unlikely that they will be in the middle >> of something, lock up their PC and go home for the night. When they >> come back in they'll unlock their PC and want to pick up where they >> left off. If they were in the middle of some data management with >> forms using the security component, the form will look like it's ready >> to go, they'll enter some more data and hit submit but they will be >> immediately blackholed. All they will see is a blank screen and think >> 'bug'. What is the best way of handling this more gracefully? How can >> I direct then to a log in screen or at least an info page? > > Is your app 1.3 based? The short answer is override the blackHole > callback, check the $reason, and then do whatever you want. AFAIK > that's the default behavior (meaning redirect on blackhole) in 2.0 > anyway: > https://github.com/cakephp/cakephp/blob/2.0/lib/Cake/Controller/Component/SecurityComponent.php#L276 > > If you want to be nice - You may want to do some store-form-data-to- > cookie/persistentStorage js so that after reloading the page you have > the possibility to repopulate the form with the data they previously > entered. > > AD > > -- > 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 -- 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
