Logout redirect?
Page: 1
I see directions to a class for the .7x version of this but not 1.x. I see the AuthController.Class.php and see that logout goes to login. What specifically do I change to direct it to a specific url?
I also tried creating a new map classs to assist e.g. in the routes but not sure how to encode a URL..
examples: Changed
AuthController.Class.php to be
and then in the routes.php added a new line at the bottom:
When I logout I get this URL:
[domainname]projects/public/index.php/logout%5C.htm
I think I am close but obviously not quite there...can someone assist? :)
I have modified the login to go from our company's web site into AC and wish to return there upon logout.
I also tried creating a new map classs to assist e.g. in the routes but not sure how to encode a URL..
examples: Changed
AuthController.Class.php to be
$this->redirectTo('logout2');
} // logoutand then in the routes.php added a new line at the bottom:
$this->map('logout2','logout.htm');When I logout I get this URL:
[domainname]projects/public/index.php/logout%5C.htm
I think I am close but obviously not quite there...can someone assist? :)
I have modified the login to go from our company's web site into AC and wish to return there upon logout.
Oliver Maksimović
on Mar 23. 2008. 10:26 am
Use:
...if you want to redirect to another URL ("outside" activeCollab app).
$this->redirectoToUrl('http://www.yourwebsite.com');...if you want to redirect to another URL ("outside" activeCollab app).
activeCollab team member, too ;)
One more question Oliver...so sometimes AC breaks and we are automatically kicked out to the default AC login page -- not to the redirect URL. Is there a way to alter the above code so it will always come back to our login page (as opposed to AC's)?
If the program is running and we click the logout the above code works great -- it is only when something happens that it doesn;'t and this happens at least once a day...e.g. we go to download more than one file and the first goes fine but for the second one we get kicked out...
If the program is running and we click the logout the above code works great -- it is only when something happens that it doesn;'t and this happens at least once a day...e.g. we go to download more than one file and the first goes fine but for the second one we get kicked out...
Ilija Studen
on Jun 4. 2008. 3:42 pm
You probably overwritten your hack when you upgraded to v1.1.1. Instructions are the same (maybe line of code changed, but it's the same procedure as with v1.0.6).
activeCollab team member



