- Posts: 25
How To / General
Joomdle Authentication 1.07 in Moodle 3.1.1+ not working
- dave
- Topic Author
- Offline
- Junior Member
-
Less
More
9 years 7 months ago - 9 years 7 months ago #1
by dave
Joomdle Authentication 1.07 in Moodle 3.1.1+ not working was created by dave
I just upgraded to Joomdle 1.07 and started getting the error below when an admin logs out from a direct moodle session. (ie. mywebsite.com/moodle/login/index.php)
Once the user clicks on the continue link they are redirected to the Joomla homepage but they remain logged in.
Code:
Notice: Undefined index: joomla_remember_me_a411b09818d60114f6a584d689ce0f39 in /home/server/public_html/moodle/auth/joomdle/auth.php on line 6539
Warning: Cannot modify header information - headers already sent by (output started at /home/server/public_html/moodle/auth/joomdle/auth.php:6539) in /home/server/public_html/moodle/auth/joomdle/auth.php on line 6552
Warning: session_regenerate_id(): Cannot regenerate session id - headers already sent in /home/server/public_html/moodle/lib/classes/session/manager.php on line 514
Skip to main content
This page should automatically redirect. If nothing is happening please use the continue link below.
(Continue)
Error output, so disabling automatic redirect.
Once the user clicks on the continue link they are redirected to the Joomla homepage but they remain logged in.
Last edit: 9 years 7 months ago by dave.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
9 years 7 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Joomdle Authentication 1.07 in Moodle 3.1.1+ not working
Hi.
Please try this:
Edit file: moodle/auth/joomdle/auth.php
Change line 6539 that is:
By:
Please try this:
Edit file: moodle/auth/joomdle/auth.php
Change line 6539 that is:
Code:
if ((!array_key_exists ($r, $_COOKIE)) && ($_COOKIE[$r]))
Code:
if (!array_key_exists ($r, $_COOKIE))
Please Log in or Create an account to join the conversation.
- dave
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 25
9 years 6 months ago #3
by dave
Replied by dave on topic Joomdle Authentication 1.07 in Moodle 3.1.1+ not working
Hi Antonio - That worked on the error message i was getting. however, after a user is redirected to the homepage they are still logged in
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
9 years 6 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Joomdle Authentication 1.07 in Moodle 3.1.1+ not working
Not sure what the problem might be... it's working fine here with same versions.
Please Log in or Create an account to join the conversation.