Report any technical problems you discover and discuss solutions.

Homepage not loading after clicking Logout

Plus d'informations
il y a 11 ans 3 mois #2686 par casglur
Homepage not loading after clicking Logout a été créé par casglur
Dear Community

When a user clicks the logout button they are not being returned to the home page. Instead the browser gets stuck in an unending loop calling the home page but never seeming to get it or display it. This kills the browser and also Apache which runs out of resources. My environment is:

OS: CentOS Linux release 7.0.1406 (Core)
Apache Version: Apache/2.4.6 (CentOS)
Xerte Toolkit Version: 2.1 (git git-103-gebc6f34)

Whilst stuck in the loop the Apache access_log displays the following approximately three times per second:

***.***.18.250 - - [28/Apr/2015:10:36:27 +0100] "GET /xertetoolkits/ HTTP/1.1" 200 2732 " myserver.swan.ac.uk/xertetoolkits/ " "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0"
***.***.18.250 - - [28/Apr/2015:10:36:27 +0100] "GET /xertetoolkits/ HTTP/1.1" 200 2732 " myserver.swan.ac.uk/xertetoolkits/ " "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0"
***.***.18.250 - - [28/Apr/2015:10:36:27 +0100] "GET /xertetoolkits/ HTTP/1.1" 200 2732 " myserver.swan.ac.uk/xertetoolkits/ " "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0"
***.***.18.250 - - [28/Apr/2015:10:36:27 +0100] "GET /xertetoolkits/ HTTP/1.1" 200 2732 " myserver.swan.ac.uk/xertetoolkits/ " "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0"

It looks like the Browser although successfully accessing the page (200) never actually gets it.

If I kill the browser session and then goto myserver.swan.ac.uk/xertetoolkits/ the page loads without any problem.

My best guess is that a PHP script that gets triggered by the clicking the logout button is causing some kind of internal loop - possibly related to killing off a session...

After a quick look around the codebase (gulp!) I'm unable to see any reason for the oddity and am stumped. Can anyone help?

thanks in advance

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 11 ans 3 mois #2688 par ronm
Réponse de ronm sur le sujet Homepage not loading after clicking Logout
Hi
This might be wide of the mark and irrelevant but what do you have around line 86 in your index.php the line that begins with <body onload...?

If that ends with ...onscroll="body_scroll()" onbeforeunload="javascript:logout()">
remove the last bit onbeforeunload="javascript:logout()" so that the line just ends ...onscroll="body_scroll()">

Let us know if that resolves the issue or indeed if it doesn't?
Ron

Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 11 ans 3 mois #2690 par casglur
Réponse de casglur sur le sujet Homepage not loading after clicking Logout
Hi Ron,

Yes, that seems to have done the trick! Working like a charm...

Many thanks for getting back on the issue so soon.

:)

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: ronmjultenJohnSmith
Temps de génération de la page : 0.145 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo