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

decafdennis’s picture

Assigned: Unassigned » decafdennis

Yes, 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.

decafdennis’s picture

Status: Active » Postponed (maintainer needs more info)
decafdennis’s picture

Assigned: decafdennis » Unassigned
Status: Postponed (maintainer needs more info) » Closed (won't fix)