Hi, As far as my understanding goes the request is forwarded (and not redirected) to access/login action if an unauthenticated request hits a secure page. In our application the login action checks for the username and password in the request if not set display the login form else perform the login action and forward the request to the requested page. The requested module/action can be obtained from getRequestParameters() or parsed from uri.
On Jan 6, 3:21 am, "Sid Bachtiar" <[email protected]> wrote: > Hi, > > Is there any setting in Symfony to redirect user after login to where > they were going? > > For example if someone is trying to access a secure page > 'message/inbox', he/she is redirected to 'access/login', then after > successful login, I want to redirect him/her back to 'message/inbox'. > > At the moment I have to custom coded this, but I'm wondering if > Symfony has a built in way to do this. > > Thanks, > > Sid > -- > Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" 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/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
