I'm trying to authenticate on my Drupal site using a mobile device + http auth, but I'm always getting "Cannot authenticate because your browser does not support cookies."
But my mobile simulator does accept cookies. You should try this simulator: http://developer.openwave.com/dvl/tools_and_sdk/phone_simulator/
Commenting the lines (below) that stops the redirect I get another error about infinite loops:
// If we already redirected with session information, it didn't work apparently.
if (isset($_GET[session_name()])) {
print("Cannot authenticate because your browser does not support cookies.\n");
// Prevent infinite redirects.
drupal_set_header("HTTP/1.0 403 Forbidden");
exit;
}
Can someone help me with this?
Thanks in advanced,
Pablo
Comments
Comment #1
decafdennis commentedYes, it redirects with a cookie. And if that didn't work, it won't try again to prevent infinite redirecting/looping. That's what that piece of code does.
Question: do you have caching enabled in that Drupal website? Then it might be related to #142358.
Any way, I will look into it. I've had a friend complain about authentication on his phone too.
Comment #2
decafdennis commentedComment #3
decafdennis commented