Home

Primary links

  • top o the deck
  • Drupal for Beginners
  • about
  • links
  • give me some sugar

Drupal stuff

  • EDAM
  • STARDOM
  • Question Bank
  • Drupal musings
  • Drupal tips
Home

Key stuff on this site

Easy Drupal Admin Manual (EDAM)

SEO, Traffic and Revenue: Drupalace's Online Manual (STARDOM)

Drupal for Beginners

Subscribe to posts by RSS or email

Subscribe to Drupal Ace by RSS feed RSS feed 

Subscribe to Drupal Ace by Email

Donate towards my web hosting bill! Get a great host!

Share and save

Share/Save

Random piece of content

!How to hide a node title?

Manuals on this site

  • Easy Drupal Admin Manual (EDAM)
    • Welcome to Your Site
    • First Steps: Please Read!
      • Understanding These Instructions
      • Important Terminology!
      • Best Practices for Site Admins
    • Super Quick Guide (for the experienced and the brave)
    • Logging In
    • Your Administrator Tools
    • Setting Site Basics
      • Setting Site Information
      • Configuring Your Theme
    • Creating Content
      • Node Types
      • Create a Page Node
      • Create a Story Node
      • Create a Blog Entry Node
      • Making Images and Other Files Available
      • Using Text and Image Editors
    • Organizing Your Content
      • Terms, Vocabularies, and Taxonomy: "Tagging" Your Content
        • Taxonomy Suggestions
      • Menus, Links, and Paths: Navigating the Site
        • Content Paths and URLs
        • Creating Links
        • Working with Menus: Administration Form (Drupal 6)
        • Working with Menus: Administration Form (Drupal 5)
        • Creating Menu Items on the Fly
        • Placing Menus on Your Pages
      • Placing Content on pages
        • Creating a page from a Single Node
        • Creating a page from a List of Nodes
        • Setting the Front Page
      • Working with Blocks
    • Maintenance Stuff
      • Maintenance and Construction Notices
    • Other Fun Things
      • Changing Color of Garland Theme
      • Free Aliases!
  • SEO, Traffic and Revenue: Drupalace's Online Manual (STARDOM)
    • Set a Clear Goal
    • Make a Good Site
      • Put out the Welcome Mat
      • Make Great Content
      • Build a Great Brand
      • Make Navigation Easy
      • Tune Site Performance
    • Drive Traffic
      • Promote your Site
      • Get Found with SEO
    • Build a Community
      • Build an Offsite Community
    • Monitor and Improve
    • One-Page Checklist
    • Drupal and the Blogging Starter Checklist
      • Drupal and the Blogging Starter Checklist, Part 1
      • Drupal and the Blogging Starter Checklist, Part 2
      • Drupal and the Blogging Starter Checklist, Part 3
      • Drupal and the Blogging Starter Checklist, Part 4
      • Drupal and the Blogging Starter Checklist, Part 5
      • Drupal and the Blogging Starter Checklist, Part 6
      • Drupal and the Blogging Starter Checklist, Part 7

Recent comments

  • It worked

    adding $GLOBALS['tempUser'] = $user; worked but I find it worth noting that I had to delete...

  • very good document...

    very good documentation for beginners!!!!!! thanks!!

  • del penitential 62

    strike out abject
    eliminate penitent 5

  • Chat

    Thank you a lot about very beneficial to my work was very useful thank you

  • Drupal Resources f...

    I would start learning from the "Diving In" section above. That links to the good beginners'...

more

login

Forum Finds: Modify length of user login sessions

  • Forum Find
  • login

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.

  • Add new comment
  • Quote

Modify length of user login sessions

  • login
  • tip

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.  

  • Drupalace's Quotes

Logging in when you're locked out

  • login
  • tip

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!

Drupal Ace

Click here and read more!
  • Drupalace's Quotes

Logging In

  • admin
  • Drupal
  • login

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:

login block

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.

  • Add new comment
  • Quote

How to fix "Access Denied" for admins?

Submitted by Drupalace on Sat, 2007-09-29 00:41
  • Drupal
  • login
  • answered question

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.

Question answer: 

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!

  • 6 comments
  • 1
  • 2
  • next ›
  • last »

Learn Drupal, hands-on

Get the beginner-friendly ebook that teaches community site building via a live case study.

Drupal 6 Ultimate Community Site Guide

Read the review

Drupal mini tip

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. 

It's a deal!

Dreamhost dealsDrupal Ace presides over his domain, proudly ensconced in his DreamHost eyrie. Won't you join me?

Promo code deal!

Just enter the code 49ER when you register for an account, and save $49 off the already-low price. No strings!

Read my hosting service review

Powered by Drupal, an open source content management system

Copyright 2007 and forever after. Made with Drupal, of course. On OS X, of course. Served up by DreamHost. DreamHost

RoopleTheme