Jump to content

BO&FO logout


Artus2000

Recommended Posts

Hello,

 

I use AgileMultipleSeller module to allow people sell your products on my store.

 

I would like to make something like, when i click (in the Back Office) logout, the system should logout the seller from the Back Office and Front Office as well. And it should move to the home page. Not to the Back Office login window like it is default. I made some basic changes but there is something on the address bar and I can't accept it, because it looks like a mess.

 

I do changes in /admin/init.php file in this line:

Tools::redirectAdmin('login.php'.(empty($destination) || ($destination == 'index.php?logout') ? '' : '?redirect='.$destination));

 

I change to:

Tools::redirectAdmin('http://www.store_adrees.com/index.php?mylogout'.(empty($destination) || ($destination == 'index.php?logout') ? '' : '?redirect='.$destination));

 

Now it nearly works like I need, but after log out from BO and redirecting to the store home page (seller is also log out) but in address bar i see some mess code. Look at below.

 

http : //www.store_adress.com/?mylogout?redirect=index.php?tab=AgileEmployees&token=7f69b499b212d5052cec6fd7175bcafb

 

Any idea how I can clear browser address bar after redirecting and logout?

Edited by Artus2000 (see edit history)
Link to comment
Share on other sites

  • 4 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...