Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

v9.03.110 - Admin logout - Completely log out

Asked Modified Viewed 571 times
E
EphyxHU
E
Ephyx

PHP-Fusion Hungary - SiteAdmin - TeamLeader
http://www.php-fusion.co.hu
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
asked
Newbie

Hi!

There are two logouts in the admin interface.

1) Admin logout
2) Logout

Clicking on any of them will completely log you out of the site.

The following file has been modified : ../includes/classes/PHPFusion/Authenticate.php

function setAdminLogin()
if (check_get("logout")) {
 self::logOut();
 redirect(BASEDIR."index.php");
 }


replaced for this:
if (check_get("logout")) {
 //self::logOut();
 self::logOutAdmin();
 redirect(BASEDIR."index.php");
 }


and after function logOut() inserted this:
 // Logout admin
 public static function logOutAdmin() {

 if (defined('COOKIE_ADMIN') && isset($_COOKIE[COOKIE_ADMIN]) && $_COOKIE[COOKIE_ADMIN] != "") {
 $cookieDataArr = explode(".", $_COOKIE[COOKIE_ADMIN]);
 if (count($cookieDataArr) == 3) {
 self::expireAdminCookie();
 }
 }

 }


The error was discovered by our user Mathias.
0 replies

1 post

R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

This is already fixed in DEV version.

If you have any fixes, you can send a Pull Request to our Github.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

2 participants

E
E
Ephyx

PHP-Fusion Hungary - SiteAdmin - TeamLeader
http://www.php-fusion.co.hu
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
R
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet