Change Session Timeout in Drupal 7

Change Session Timeout in Drupal 7

if you  are facing problem with drupal 7  logout and you want to logout visitor within a specific time. if you want to end you session in 1 or 2 day(s) or any other random time then the solution is to set 2o minutes for session timeout.

Change Session Timeout in Drupal 7 is easy. Default Drupal 7  session timeout is 23days which is defined in settings.php file which is  located under default folder, after opening settings.php search for

ini_set('session.cookie_lifetime',  2000000);

Now you can change “2000000” which is  equal to 23 days in seconds. and you can enter what ever you want  like for 1 minute you can change 60.

I think this will clear you everything still you found any issue you can comment and ask for help.

This entry was posted in Development and tagged , , . Bookmark the permalink.

3 Responses to Change Session Timeout in Drupal 7

  1. ashish says:

    It is still not working even after clearing my cache it doesn’t seems to work.
    may i known how to fix it.

    Thank+you

  2. Armando Speh says:

    An impressive share! I’ve just forwarded this onto a co-worker who has been doing a little homework on this. And he actually bought me breakfast due to the fact that I found it for him… lol. So let me reword this…. Thank YOU for the meal!! But yeah, thanks for spending the time to discuss this topic here on your internet site.

  3. I will immediately snatch your rss feed as I can not to find your email subscription hyperlink or e-newsletter service. Do you’ve any? Please permit me understand in order that I could subscribe. Thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.