FlyingMachine Posted April 3, 2015 Report Share Posted April 3, 2015 Hello dears, i would like to redirect users after logout to specific website caue the pilot center is in subdomaine also the phpvms i would like to redirect members to specific pages for ex: phpvms.domain.com to domain.com thanks in advance Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted April 5, 2015 Members Report Share Posted April 5, 2015 go to modules/Logout/logout.php add below #$this->render('login_complete.tpl'); this header("Location: http://example.com/myOtherPage.php"); die(); Complete code should be <?php /** * phpVMS - Virtual Airline Administration Software * Copyright (c) 2008 Nabeel Shahzad * For more information, visit www.phpvms.net * Forums: http://www.phpvms.net/forum * Documentation: http://www.phpvms.net/docs * * phpVMS is licenced under the following license: * Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) * View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/ * * @author Nabeel Shahzad * @copyright Copyright (c) 2008, Nabeel Shahzad * @link http://www.phpvms.net */ class Logout extends CodonModule { public function index() { Auth::LogOut(); /*redirect back to front page */ header('Location: '.url('/')); #$this->set('redir', ""); #$this->render('login_complete.tpl'); header("Location: http://example.com/myOtherPage.php"); die(); } } 1 Quote Link to comment Share on other sites More sharing options...
FlyingMachine Posted April 6, 2015 Author Report Share Posted April 6, 2015 work perfectly tnx Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.