Because the following error comes out, when I start the login: Error Invalid redirect 'orig' parameter
and redirects me to this template section: wr_redirect.do
I think that you should go to your properties configuration and set the Default Cookie Timeout to -1, because you are having troubles with cookies.