Phpmyadmin Automatic Logout Time

phpmyadmin automatic logout time

Create or edit your php.ini file and set this variable value in it:

session.gc_maxlifetime = 1440

The integer is in seconds. 500000 seconds is 5.7 days. Then restart apache.

How to set my phpmyadmin user session to not time out so quickly?

To increase the phpMyAdmin Session Timeout, open config.inc.php in the root phpMyAdmin directory and add this setting (anywhere).

$cfg['LoginCookieValidity'] = <your_new_timeout>;

Where <your_new_timeout> is some number larger than 1800.

Note:

Always keep on mind that a short cookie lifetime is all well and good for the development server. So do not do this on your production server.

phpmyadmin logs out after 1440 secs

I have found the solution and using it successfully for sometime now.

Just install this Addon to your FF browser.

phpMyAdmin - cannot change session expiration time

Ubuntu will by default disable the PHP session garbage collector (by setting the master value of session.gc_probability to 0), and in stead use a cronjob to delete session files after they reach a certain age. The age is determined by the master value of session.gc_maxlifetime.

This means that regardless of your local 86400 seconds value (which has no effect because of the disabled session garbage collection) the cronjob will delete sessions files after 1440 seconds.

So you have 2 options:

  1. Disable the cronjob (probably /etc/cron.d/php5) and enable the PHP session garbage collector, by setting session.gc_probability to 1 (in all /etc/php5/*/php.ini files).

  2. Set the correct master value for session.gc_maxlifetime. Yours is 1440 seconds. Alter it (in all /etc/php5/*/php.ini files) to the greatest local value any virtual host / php application on the server uses (so at least 86400 seconds).

Session Lifetime on PhpMyAdmin

First you need to verified that is ini_set allowed on your system or not?

To find out what the default (file-based-sessions) session timeout value on the server is you can view it through a ini_get command:

$currentTimeoutInSecs = ini_get(’session.gc_maxlifetime’);

// php.ini setting required for session timeout.

ini_set(’session.gc_maxlifetime’, 3600);
ini_set(‘session.gc_probability’,1);
ini_set(‘session.gc_divisor’,1);

session_set_cookie_params(3600);

session_start(); // ready to go!

if you want to change the session.cookie_lifetime.

This required in some common file because to get the session values in whole application we need to write session_start(); to each file then only will get $_SESSION global variable values.

$sessionCookieExpireTime=8*60*60;
session_set_cookie_params($sessionCookieExpireTime);
session_start();

what is the default session time in PHP and how can I change it?

Yes you can change it from php.ini file. The default is 24 minutes (1440 seconds).

Here is an link hope this link helps you.
max session time

Or you can also chage it in php connection file.

ini_set('session.gc_maxlifetime', 3600); //Make it one hour


Related Topics



Leave a reply



Submit