logout destination

Permalink
Hi
where can I determine the page a user gets to upon logout?

I actually forgot why I wanted this to happen but I still would love to know :-)

Thanks guys! Concrete5 rocks!

shotrox
View Replies:
ssrgspdkt replied on at Permalink Reply
ssrgspdkt
Hi shotrox,
Currently we can define login destination only under system&settings option. If you need to add Logout destination,
1. you should create singlepage in dashboard/system/registration/ & store in New created db or as Config value.
2. you can hard code in controller/login/logout.
marticps replied on at Permalink Reply
marticps
Hey, you can do that:
1) Copy your root/concrete/controllers/login.php to root/controllers/login.php
2) Go to line 361 or search this:
public function logout() {
      $u = new User();
      $u->logout();
      $this->redirect('/');
}

3) Change the destination.

Hope it helps
magicpeanut replied on at Permalink Reply
hmm-- my login.php has just 3 lines :/
eljhonb replied on at Permalink Reply
How to do it in 5.4.1.1 without hardcode on original login page (root/concrete/controllers/login.php)??
thx in advance