Jump to content

Recommended Posts

Posted

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

  • Members
Posted

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();
    }
   }

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...