Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

How to increase the timeout limit of a login session in phpMyAdmin

 
databasesdomainsgolinuxobsidian

Question

How to increase or modify the timeout limit of a login session in phpMyAdmin?

Answer

  • Plesk for Linux:

For Plesk Obsidian 18.0.30 and above

  1. Connect to the server via SSH

  2. Go to the file path /usr/local/psa/phpMyAdmin/:

    # cd /usr/local/psa/phpMyAdmin/

  3. Create the file config.inc.php if it doesn't exist copying the template file libraries/config.default.php:

    # if [ ! -f config.inc.php ]; then cp -a {libraries/config.default.php,config.inc.php}; fi

  4. Edit the file config.inc.php with a text editor: 

    # vi config.inc.php

  5. Change the value of the parameter LoginCookieValidity:

    $cfg['LoginCookieValidity'] = 1800;

  6. Save the changes and close the file

For Plesk Onyx and Plesk Obsidian below 18.0.30

  1. Connect to the server via SSH

  2. Go to the file path /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/:

    # cd /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/

  3. Create the file config.inc.php if it doesn't exist copying the template file libraries/config.default.php:

    # if [ ! -f config.inc.php ]; then cp -a {libraries/config.default.php,config.inc.php}; fi

  4. Edit the file config.inc.php with a text editor: 

    # vi config.inc.php

  5. Change the value of the parameter LoginCookieValidity:

    $cfg['LoginCookieValidity'] = 1800;

  6. Save the changes and close the file

 

  • Plesk for Windows:

For Plesk Obsidian 18.0.30 and above

  1. Connect to the server via RDP

  2. Go to the following folder path: %plesk_dir%phpmyadmin

  3. Create or edit the file config.inc.php with a text editor

  4. Add or change the value of the parameter LoginCookieValidity and save the changes:

    <?php
    declare(strict_types=1);
    // ...
    $cfg['LoginCookieValidity'] = 1800;

  5. Edit the Plesk PHP.ini file %plesk_dir%adminconfphp.ini with a text editor

  6. Add or edit the parameter session.gc_maxlifetime in the [Session] section with the same value configured in LoginCookieValidity and save the changes:

    ...
    [Session]
    session.gc_maxlifetime = 1800
    ...

  7. Log out from phpMyAdmin and Plesk to start a new PHP session

For Plesk Onyx and Plesk Obsidian below 18.0.30

  1. Connect to the server via RDP

  2. Go to the following folder path: %plesk_dir%adminhtdocsdomainsdatabasesphpMyAdmin

  3. Create or edit the file config.inc.php with a text editor

  4. Add or change the value of the parameter LoginCookieValidity and save the changes:

    <?php
    declare(strict_types=1);
    // ...
    $cfg['LoginCookieValidity'] = 1800;

  5. Edit the Plesk PHP.ini file %plesk_dir%adminconfphp.ini with a text editor

  6. Add or edit the parameter session.gc_maxlifetime in the [Session] section with the same value configured in LoginCookieValidity and save the changes:

    ...
    [Session]
    session.gc_maxlifetime = 1800
    ...

  7. Log out from phpMyAdmin and Plesk to start a new PHP session

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Plesk Obsidian 18.0.62 is now available

Read More »

Plesk Obsidian 18.0.61 Release

Read More »

How to Check Open Ports in Linux (Simple Commands & Tools)

Read More »
Knowledge Base

 An operation fails in Plesk: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘X’ for key ‘PRIMARY’

Read More »

Unable to upload database with phpMyAdmin: Script timeout passed or 504 Gateway Timeout is shown

Read More »

Some functionalities are missing in Plesk admin interface

Read More »

How to remove Plesk backup files and their logs

Read More »

Hosting Wiki

  • Django
  • RESTful Web Service
  • Server Redundancy
  • Cloud Service Architecture
  • Virtualizor
  • On-Demand Services
  • Linux Containers
  • Google Cloud CDN
  • Bare Metal Server
  • Denial of Service
  • PhpMyAdmin
  • phpPgAdmin
  • Red Hat Virtualization
  • Virtuozzo
  • Oracle VM Server
  • Citrix Hypervisor
  • Server Virtualization Software
  • Windows Server
  • Linux
  • Virtualization
  • PHP
  • MongoDB
  • Domain
  • VirtualMin
  • Plesk
  • Web Server
  • DNS Server
  • SSH
  • Email Virus Protection
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family