- Posts: 11
Warning: Cookie names cannot contain any of the following
- Anthony Chung
- Topic Author
- Offline
- New Member
-
Less
More
13 years 5 months ago #1
by Anthony Chung
Warning: Cookie names cannot contain any of the following was created by Anthony Chung
SSO in from Joomla to moodle, there will be this two error messages when signing out from Moodle:
Warning: Cookie names cannot contain any of the following '=,; \t\r\n\013\014' in /..../public_html/courses/auth/joomdle/auth.php on line 4197
Warning: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent in /.../public_html/courses/lib/sessionlib.php on line 237
There is no error when login directly from moodle then logout.
Warning: Cookie names cannot contain any of the following '=,; \t\r\n\013\014' in /..../public_html/courses/auth/joomdle/auth.php on line 4197
Warning: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent in /.../public_html/courses/lib/sessionlib.php on line 237
There is no error when login directly from moodle then logout.
Please Log in or Create an account to join the conversation.
- Anthony Chung
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
13 years 5 months ago #2
by Anthony Chung
Replied by Anthony Chung on topic Warning: Cookie names cannot contain any of the following
Sorry, I Put this post in the wrong category.
Please Log in or Create an account to join the conversation.
- Anthony Chung
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
13 years 5 months ago #3
by Anthony Chung
Replied by Anthony Chung on topic Warning: Cookie names cannot contain any of the following
I just commented out line 4197
setcookie($r, false, time() - 3600, '/');
The logout warning is gone.
Will this have any weird result in other parts of the system?
setcookie($r, false, time() - 3600, '/');
The logout warning is gone.
Will this have any weird result in other parts of the system?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
13 years 5 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Warning: Cookie names cannot contain any of the following
I never saw anyone reporting that problem, so I don't know where it is coming from.
Did you try enabling/disabling redirect-less logout to see if it works better?
You should not have similar problems anywhere else, as this code is only used on logout,.
Did you try enabling/disabling redirect-less logout to see if it works better?
You should not have similar problems anywhere else, as this code is only used on logout,.
Please Log in or Create an account to join the conversation.
- Ole Fisker
- Offline
- New Member
-
Less
More
- Posts: 14
12 years 4 months ago #5
by Ole Fisker
Replied by Ole Fisker on topic Warning: Cookie names cannot contain any of the following
Just a follow up on this Issue, if others is going to have the same problem.
I got the same error.
The configuration in Joomla of the internal IP-adress to Moodle was wrong.
When changing the Ip-address to the right one, the problem was solved.
I got the same error.
The configuration in Joomla of the internal IP-adress to Moodle was wrong.
When changing the Ip-address to the right one, the problem was solved.
Please Log in or Create an account to join the conversation.