Jump to content

"mylogout" no logout


Recommended Posts

Firefox 3 and Internet Explorer 7
Delete cookies work in both browsers, but the users of the shop must close session correctly not deleting cookies
The page index.php?mylogout is blank and not work

How Can I resolve this?

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 months later...
  • 2 weeks later...
  • 3 weeks later...

I had same problem.
Just copy the original index.php or check that first line start with <?php

Like this:
<?php

include(dirname(__FILE__).'/config/config.inc.php');
include(dirname(__FILE__).'/header.php');

$smarty->assign('HOOK_HOME', Module::hookExec('home'));
$smarty->display(_PS_THEME_DIR_.'index.tpl');

include(dirname(__FILE__).'/footer.php');
?>

Sorry for my english...
Regards from Reynosa, Mexico

  • Like 1
Link to comment
Share on other sites

  • 3 months later...
  • 7 months later...
I solved for my
in \config\ smarty.config.inc.php
$smarty->caching = true;

Change to $smarty->caching = false; (as in default)


I have same problem.
But when I remove my yahoo meta script from index.php, voila ... it runs just like before ...

Maybe that's the problem ... :-)
Link to comment
Share on other sites

  • 7 months later...
I had same problem.
Just copy the original index.php or check that first line start with <?php

Like this:
<?php

include(dirname(__FILE__).'/config/config.inc.php');
include(dirname(__FILE__).'/header.php');

$smarty->assign('HOOK_HOME', Module::hookExec('home'));
$smarty->display(_PS_THEME_DIR_.'index.tpl');

include(dirname(__FILE__).'/footer.php');
?>

Sorry for my english...
Regards from Reynosa, Mexico


After much searching and pulling my hair out, I've finally solved this problem.

In the root-->index.php the very first line should be <?php as stated above.
Probably like many of you I checked and saw that indeed that was my first line.

The problem is I had a blank line above it which I hadn't noticed, so double check and take out any returns you may have accidentally placed above the<?php in the index file. It solved the logout problem for me.
Link to comment
Share on other sites

  • 2 years later...
  • 1 month later...

Hello

 

It's prestashop 1.4.11. I have find a solution.

 

With notepad i have edit classes/FrontController.php

 

Find:

elseif (isset($_GET['mylogout']))

{

$cookie->mylogout();

Tools::redirect(Tools::redirect(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : null) ;);

}

 

Change to :

 

elseif (isset($_GET['mylogout']))

{

$cookie->mylogout();

Tools::redirect(index.php);

}

 

 

After this modification, my logout button works

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

×
×
  • Create New...