Site visitors seeing your ugly error messages on the screen (along with details of your Drupal installation path)? Once your site goes from dev to launch, you probably want to have errors recorded in the log but not splashed across the screen. Head to the handy Error Reporting settings found at admin/settings/error-reporting.
login
Forum Finds: Modify length of user login sessions
Here's a good bit of info on Drupal login session length spotted in the Drupal.org forums:
Tired of logging in again and again to a Drupal site that keeps kicking you out? You can modify session length, i.e. the length of time that a logged-in session stays logged in. Open the site's settings.php file, and look for this line:
ini_set('session.cookie_lifetime', 0);
Replace that "0", or whatever number is there, with the number of seconds for desired session lifetime. The system will probably limit you to a max 2000000000 (two billion) seconds – which, at over 60 years, is extreme overkill. (Rule of thumb: One million seconds = 11 and a half days. Or just figure 100K seconds as a day plus change.)
Keep in mind, though, that letting users stay logged in for a long time has security implications (such as when a logged-in user's computer is appropriated by someone who shouldn't be poking around in the site). For more details and an alternate, module-based approach to setting session length, see the Persistent Login module.
Modify length of user login sessions
Tired of logging in again and again to a Drupal site that keeps kicking you out? You can modify session length, i.e. the length of time that a logged-in session stays logged in, via the ini_set('session.cookie_lifetime'... line in the site's settings.php file. See details in Forum Finds: Modify length of user login sessions.
Logging in when you're locked out
You've logged out as admin, and realize there's no login block on your site... You're locked out! It's the #1 newbie emergency, with daily pleas for help appearing on the drupal.org forums!
Logging In
If you're the administrator, you can log in with your ID and password and begin administering the site.
Where to log in
Depending on your site setup, your front page, or another page on the site, may show a login block like this:

Whether or not you see that, though, you can always log in by going to this page:
<your site domain>/user
or, depending on your site setup,
<your site domain>/?q=user
Provide the ID and password, and you're in!
Forgotten password
If you've forgotten your password, hit the "Request new password" link. You'll receive a new password by email, at the address specified when your (or another administrator) set up your account.
How to fix "Access Denied" for admins?
Yikes! A client's site suddenly turned up "Access Denied" for admins – up, down, and all around. Attempts to log in as almighty User ID 1 would simply spit the login screen right back again, or appear to "take" momentarily, yet return "Access Denied" for any following admin action.
Some horrible flub-up with user permissions? Can't even check and troubleshoot when the site won't let the admin in! And playing with cache, cookies, and other browser fiddly bits wasn't doing the job.
I expected major pain to result. But a search of the Drupal site quickly turned up this gem:
http://drupal.org/node/6696#comment-198054
Just a little addition to my INDEX.PHP file. I tried it, and Huzzah! Back in logged-in action.
The cause of the problem? Perhaps this:
http://drupal.org/node/6696#comment-204960
Hmm, could it be that the ISP had updated PHP from 4 to 5? Yes, it seemed so! (Maybe now I'll start to pay attention to their newsletters.)
So the thread addressed my woe, and I'm a happy Drupaller all over again. Now, this particular case had a Drupal 4.x site knocked out of action by a PHP upgrade, so it may not apply directly to many users' situations. But if you're getting "Access Denied" hate (on 4.x or 5.x), give the linked thread a peek.
My thanks to everyone offering help on the topic, especially Drupal Gods kweisblatt and johnchalekson!
Learn Drupal, hands-on
Get the beginner-friendly ebook that teaches community site building via a live case study.







adding $GLOBALS['tempUser'] = $user; worked but I find it worth noting that I had to delete...
very good documentation for beginners!!!!!! thanks!!
strike out abject
eliminate penitent 5
Thank you a lot about very beneficial to my work was very useful thank you
I would start learning from the "Diving In" section above. That links to the good beginners'...