Warning: Cookie names cannot contain any of the following

  • Anthony Chung
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 5 months ago #1 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.

Please Log in or Create an account to join the conversation.

  • Anthony Chung
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 5 months ago #2 by Anthony Chung
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
  • New Member
More
13 years 5 months ago #3 by Anthony Chung
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?

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #4 by Antonio Durán
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,.

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #5 by Ole Fisker
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.
:)

Please Log in or Create an account to join the conversation.