By Fidelis on
When the site has been put offline, one just adds a trailing "/user" and logs in with the admin username / password. Fine.
What happens though if I logged out of the admin account, went back to the "(domain)/user" page, entered another (test) username / password (it's a mistake - I wanted to test the site from a user point of view but forgot to take the site online before), got the usual "site offline" message, but now I have no way back in! I can't log out of that user, not log back in as administrator... What can I do??
Many thanks...
Comments
---
go into your database and truncate the sessions table, this will log everyone out.
/user should still work
A couple of things you can do....
Try clearing cache, cookies and authenticated logins in your browser. (Or using another browser)
Try going to www.example.com/user again; that should give you a login screen and you can login as admin.
If that fails, try going to www.example.com/?q=user
This issue has come up a lot, so you can also search the forums. Here's one... http://drupal.org/node/133910
geoff gevalt
http://www.youngwritersproject.org
geoff gevalt
http://www.youngwritersproject.org
http://www.ywpschools.net
http://geoffreygevalt.com
or.. change IP address and login again.. or.. remove cookie..
sessions are IP based, so you may login from another IP address as another user..
Also, cleaning browser site's cookie should help, session is cookie stored.
good luck!
PD: this issue is funny, remembers me like when you drop down the ethernet interface in a remote server.. XD
damm.. I forgot the funniest answer..
You can also try to go: http://site/?q=logout and logout the current session, so you can login again as administrator
Too sleepy!
Note: didn't try.. don't know if this should work with an offline setup of the server.. it does?
Thks for the tip!
But in the end I tried something else - I was away tonight and had access to another computer; I loogged in as user 1 on that one and took the site off maintenance from there. No I can go back to work (!) :-)
patrick