On May 15, 9:32 am, Alexandru-Emil Lupu <gang.al...@gmail.com> wrote:
> usually if you would set in your app config dir into security.yml
> all:
> is_secure: on
> then you won't have to worry .. any directory that would access your user,
> will be automatically redirected to "login" form unless he's already logged
> in.
> That would mean the page that was requested becomes the referer. So, the
> plugin will automatically redirect you to the initially requested page.
Right, but that is not happening. As I explained in an earlier post:
"So if I'm at the home page and I try go here:
index.php/wiki/show/id/54
The home page is treated as the referer. But after the user signs in,
I want them to end up here:
index.php/wiki/show/id/54
If I change this:
return $this->redirect($signinUrl);
to this:
return $this->redirect($request->getUri());
then I end up with an infinite loop of redirection. (Or rather, if I
put getUri() in the login form that submits.)
Ideally I could use $this->forward(), but this forward usually takes a
module and action like this:
$this->forward('question', 'index');
I think it would be a lot of work for me to fetch the id and squeeze
it in there. "
Everything I do seems to lead to an infinite redirection loop.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---