UK Sales: 0800 035 6364 | sales@2020media.com | We'll Call You

Improve Drupal site security

 

Drupal Hosting from 2020Media
Drupal Hosting from 2020Media

If you've used Drupal for a while you may notice you can come back after a couple of weeks and not have to log back in. This is becase the default setting is for Drupal to keep users logged in for 2,000,000 seconds, slightly over 23 days. You can change this by editing a line in the file settings.php.

On the web server, locate settings.php. Its located in the /sites/default directory.
Open settings.php in a text editor such as Notepad. Find these lines, changing the number of seconds as appropriate then save the file.

ini_set('session.cookie_lifetime',2000000);

If you want users to have to login every time they revisit the site, use a zero:

ini_set('session.cookie_lifetime',0);

Remember to re-upload the file once you've finished changing it.

Drupal Settings.php
Drupal Settings.php
2020Media is a leading provider of small business Wi-Fi hotspots. If you want to offer free Wi-Fi to your customers or users, our service could be exactly what you are looking for. Our Hotspots are managed in the cloud, ultra-reliable and give you loads of information about behaviour patterns of your users. Read More   Read more...
2020Media introduces Moodle Hosting - UK servers and UK Moodle experts setup your site ready to use. Read more...
Special Offer for Longer Registration Periods Register or renew a .com, .net or .org domain name for 5 years we'll include 1 year free*. Read more...
2020Media is now offering zero-click installation of the popular TYPO3 content management system. Read more...

Our blog is regularly updated with news, tips and industry opinion.

Clients

  • AggieWestons
  • baker-and-mckenzie
  • arts-council-england
  • Big Finish
  • barratt-developments-logo
  • City-of-Lincoln-council-logo
  • brora-logo
  • DenisMacShane
  • Construction-Industry-Council
  • colchester