- Posts: 33
R0.25 No Longer Supported
[Solved] Cannot log out of front end Joomla
- Garrett
- Topic Author
- Offline
- Junior Member
-
Less
More
15 years 9 months ago - 15 years 9 months ago #1
by Garrett
[Solved] Cannot log out of front end Joomla was created by Garrett
Hi,
I have noticed that once I log into my Joomla site (front end) I cannot log out - when I remove Joomdle I can log out so not sure what is the problem. Right now the only way I can log in as different users is to delete the cache on my browser and log in which is not good for the long term. I did update the land page in Moodle as you specified however I feel this is a separate issue. I thought this problem was sorted but its still not working for me so any feedback on this is appreciated. The site I am working on is www.netmarketinginstitute.com/
Thanks, Garrett
I have noticed that once I log into my Joomla site (front end) I cannot log out - when I remove Joomdle I can log out so not sure what is the problem. Right now the only way I can log in as different users is to delete the cache on my browser and log in which is not good for the long term. I did update the land page in Moodle as you specified however I feel this is a separate issue. I thought this problem was sorted but its still not working for me so any feedback on this is appreciated. The site I am working on is www.netmarketinginstitute.com/
Thanks, Garrett
Last edit: 15 years 9 months ago by Antonio Durán.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
15 years 9 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Re: Cannot log out of front end Joomla
I see your problem, when it is even stranger: I went to your page and I am already logged as joe blair, a user I have never used.
If you want to do some debuggig, I can guide you on where to change some code, to try to isolate the problem.
If you want to do some debuggig, I can guide you on where to change some code, to try to isolate the problem.
Please Log in or Create an account to join the conversation.
- Garrett
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 33
15 years 9 months ago #3
by Garrett
Replied by Garrett on topic Re: Cannot log out of front end Joomla
Ok - I am online now
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
15 years 9 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Re: Cannot log out of front end Joomla
First I would test only disabling the joomdlehooks plugin, and testing. It should work.
When we are sure of that, we can continue.
When we are sure of that, we can continue.
Please Log in or Create an account to join the conversation.
- Garrett
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 33
15 years 9 months ago - 15 years 9 months ago #5
by Garrett
Replied by Garrett on topic Re: Cannot log out of front end Joomla
That works. I can now log out however when I log in I am brought to
www.netmarketinginstitute.com/component/content/
which shows on the login menu item only the menu (no other menu items)
if you want access to see it is joeb and password is pass
if you want access to see it is joeb and password is pass
Last edit: 15 years 9 months ago by Garrett.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
15 years 9 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic Re: Cannot log out of front end Joomla
That is very strange, as if the joomdlehooks plugin is disabled, Joomdle does not interfere in the login process. so in theory there is another thing redirecting you....can you think of something?
How do you have the login module configured to redirect after logging?
How do you have the login module configured to redirect after logging?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
15 years 9 months ago #7
by Antonio Durán
Replied by Antonio Durán on topic Re: Cannot log out of front end Joomla
Anyway, going back to the original problem: it is clear that is the joomdlehooks plugin who make it not working.
On R0.25, I have made a change to log out code, to deal with different domains.
Let's try to get back to original way, and see if it works.
In joomdlehooks.php, onLogoutUser function: just comment out everything between the NEW comments ( 4 lines).
That would execute older logout code.
On R0.25, I have made a change to log out code, to deal with different domains.
Let's try to get back to original way, and see if it works.
In joomdlehooks.php, onLogoutUser function: just comment out everything between the NEW comments ( 4 lines).
That would execute older logout code.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
15 years 9 months ago #8
by Antonio Durán
Replied by Antonio Durán on topic Re: Cannot log out of front end Joomla
Hi again.
I have been thinking about this issue again, and after making some tests I can replicate the bug. It happens only when "Remember me" is set.
I have a fix that seems to solve the problem, at least locally. Can you please test and report back?
First, leave the file unmodified (no commenting out like I told you).
The, in the same joomdlehooks.php file, same function, add:
setcookie(JUtility::getHash('JLOGIN_REMEMBER'), '', time() - 3600, '/','','',0);
just before the NEW block.
I have been thinking about this issue again, and after making some tests I can replicate the bug. It happens only when "Remember me" is set.
I have a fix that seems to solve the problem, at least locally. Can you please test and report back?
First, leave the file unmodified (no commenting out like I told you).
The, in the same joomdlehooks.php file, same function, add:
setcookie(JUtility::getHash('JLOGIN_REMEMBER'), '', time() - 3600, '/','','',0);
just before the NEW block.
Please Log in or Create an account to join the conversation.
- Garrett
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 33
15 years 9 months ago #9
by Garrett
Replied by Garrett on topic Re: Cannot log out of front end Joomla
hey - its all working after I commented out - I am in the middle of doing a video for you so if I post is soon and you have a look and then decide if I should take the above steps. Video will be ready in about 15 minutes
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
15 years 9 months ago #10
by Antonio Durán
Replied by Antonio Durán on topic Re: Cannot log out of front end Joomla
Don't worry about the video, I already know hat happens.
If you can do the test, it should work too, and will be able to confirm it
If you can do the test, it should work too, and will be able to confirm it
Please Log in or Create an account to join the conversation.