I just put my site online. Anonymous user can see all the allowed nodes through menu. But no user can log in.
The login and password boxes are there, if I try to log in, the front page just refresh itself and login has no effect. There is no error message.

Please help.

Comments

samwarren’s picture

I initially set the site off-line, disabled all the non-core modules.
When I try login

http://example.com/?q=user

It just kick my back to off-line page.
Then I followed this:
http://drupal.org/node/56995,

UPDATE variable SET value = 's:1:"0";' WHERE name= 'site_offline';
DELETE FROM cache WHERE cid = 'variables';

The site is online, but I still cannot login. The site is only available to anonymous.

samwarren’s picture

In settings.php,
I commented out

$cookie_domain = 'site.com';

Now I can log in.
I had problem that my local site keeps kicking me out of login state. It was related to cookies. Now I remember I removed the comment on the above line and used it with no problem. Now in live site, that line just made cookie lift time zero (I guess). Is there any side effect by commenting out that line? What is the right way to use that line?
Thanks,