Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't Logout?
#1
Hello,

I can always access the admin pages even if I press the logout button. Is this normal?

Kind regards,

Wesley
Reply
#2
No, what GS version are you using.
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#3
ccagle8 Wrote:No, what GS version are you using.

I am using 2.03.1 Latest Stable Version (GPL). I did a check with IE & FF.
Reply
#4
Same problem here, I am using 2.03.1 and checked with chrome & ie9
Reply
#5
Anyone, please?
Reply
#6
im stumped on this one... 2.03.1 only checks to see if the cookie is there before killing it. before we just blindly killed it if it was there or not originally... not exactly a change that should cause this.

Can someone confirm if this is still happening with the latest SVN build? http://get-simple.info/beta
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#7
I think I found the problem...

Take a look at cookie_functions.php line 39,
Quote:$saltCOOKIE = sha1($identifier.$SALT);

I think this is the problem, because when I do print_r($_COOKIE), the result of the hash was never there, instead it used the "$identifier.$SALT" form (confirmed it by looking at cookie_check functions line 69-70).

To repair it, I simply change line 39 from
Quote:$saltCOOKIE = sha1($identifier.$SALT);
to:
Quote:$saltCOOKIE = $identifier.$SALT;

Hope it helps Smile
Reply
#8
does that mean your system does not have the ability to do a sha1() hash?
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#9
nope! it means u use sha1($saltCOOKIE) ONLY in kill_cookie function, and unhashed $saltCOOKIE form in the rest of them Smile that's why the cookie_check would NEVER find the sha1($saltCOOKIE) because u used the unhashed $saltCOOKIE form in other (check_cookie, create_cookie, etc..) Big Grin

See it for yourself Smile
Reply
#10
To make my point clearer, take a look at these codes:

Quote:function create_cookie() {
.....
global $cookie_name;
$saltUSR = $USR.$SALT;
$saltCOOKIE = $cookie_name.$SALT;
if ( defined('GSCOOKIEISSITEWIDE') && (GSCOOKIEISSITEWIDE == TRUE) ) {
setcookie($saltCOOKIE, sha1($saltUSR), time() + $cookie_time,'/');
}....
}

and this:
Quote:function cookie_check($cookie_name=FALSE) {
if($cookie_name==FALSE) { // Assume login cookie.
....
$saltCOOKIE = $cookie_name.$SALT;
if(isset($_COOKIE[$saltCOOKIE])&&$_COOKIE[$saltCOOKIE]==sha1($saltUSR)) {
return TRUE; // Cookie proves logged in status.
} else { return FALSE; }
}...

while in kill_cookie, we have:
Quote:function kill_cookie($identifier) {
global $SALT;
$saltCOOKIE = sha1($identifier.$SALT);
if (isset($_COOKIE[$saltCOOKIE])) {
if ( defined('GSCOOKIEISSITEWIDE') && (GSCOOKIEISSITEWIDE == TRUE) ) {
$_COOKIE[$saltCOOKIE] = FALSE;
setcookie($saltCOOKIE, FALSE, time() - 3600,'/');
} else {
$_COOKIE[$saltCOOKIE] = FALSE;
setcookie($saltCOOKIE, FALSE, time() - 3600);
}
}
}

See my point? Big Grin
Reply
#11
i do... interesting as I am able to logout of my site... I will get this fixed immediately in the SVN.
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#12
I got the same problem in version 2.03.1 and coolkid's fix fixed that problem for me.
Author of GetSimple 3's Finnish Language file — http://get-simple.info/extend/language/f...guage/106/
Reply
#13
ok, we will get this fixed in 3.0. Ive added it to the issue tracking list: http://code.google.com/p/get-simple-cms/...ail?id=141
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#14
Same Problem in 3.0, fix didn't help yet.
TYPO3 Web development martinterber.com
Reply
#15
Mateng Wrote:Same Problem in 3.0, fix didn't help yet.


did you clear the cache?
did you try with different browsers or with different computers?

I am sure it is a cache problem

Cheers, Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#16
I had this problem as well.
It turned out to be the language file being saved in UTF-8 not UTF-8 Without BOM.
Reply
#17
Hi,
i think its something related to cache.., try it once..,
Reply
#18
hi.. i have the same problem, and got to clear the cache, and i log out sucessfully Smile thanks
Reply
#19
I have the same problem, using GS 3.0B and SimplePageContent + p01contact plugins
Tested on win IE8 and osx FF4 (different machines). Logout button reroutes to admin page.
Reply
#20
Try to use the released 3.0 version, as the beta version 3.0.B is not actual any more
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#21
Updating to 3.0 didn't help unfortunately. Curious thing: locally logout works, on the live site it doesn't.
Reply
#22
deactivate friendly urls
edit your .htaccess

clear all cache

logout = still not possible?

what is the info of the health check?
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#23
Connie Wrote:deactivate friendly urls
edit your .htaccess

clear all cache

logout = still not possible?

what is the info of the health check?

Hi Connie

I have the same issue: can't log out. Did what you wrote, health check: all OK.
When deleting the rewrite rules, uncheck pretty URL's and clearing the cache I can log out one time but after that not any more (unless I repeat that procedure again).
Hans
Reply
#24
what is the info of the health check?

which browser?

did you check with different browsers?
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#25
Connie Wrote:what is the info of the health check?

which browser?

did you check with different browsers?

Hi Connie:

Tried with IE8, FF4 and latest Chrome, all the same.
Attached the contents of the healthcheck
Reply




Users browsing this thread: 1 Guest(s)