Plesk session is dropped if client’s IP is being changed

Created:

2016-11-16 13:09:48 UTC

Modified:

2017-04-24 11:55:56 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk session is dropped if client’s IP is being changed

Applicable to:

  • Plesk 10.4 for Windows
  • Plesk 10.4 for Linux
  • Plesk 11.0 for Windows
  • Plesk 11.0 for Linux
  • Plesk 9.x and below for Linux
  • Plesk 9.x and below for Windows

Symptoms

Plesk users are using internet connection with dynamic IP which changes on every request. Plesk Panel drops their sessions for security reasons and displays login prompt anew or reports ‘session expired’ error message .

Resolution

The option " Allow IP change during one session " has been added to Parallels Plesk Panel for Windows since version 9.2 : Home > Session Idle Time or Tools & Settings > Session Idle Time for recent versions.

Since version 11.0 of Parallels Plesk Panel for Linux you may disable session check inserting the following parameter in the database:

~# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin psa -e 'REPLACE INTO misc VALUES ("disable_check_session_ip","true")'

Here are hotfixes for Parallels Plesk Panel for Linux 8.6 and 9.2:

To apply the fix:

  1. Make a backup of original /usr/local/psa/admin/plib/class.Session.php file (or /opt/psa/admin/plib/class.Session.php for Debian/Ubuntu) on your server;
  2. Download appropriate file for your version to your server;
  3. Remove version suffix from the file name (e.g. rename file to class.Session.php) and replace the original file with the new patched one;
  4. Execute the following command from the server shell console:
        ~# mMYSQL_PWD=`cat /etc/psa/.psa.shadow`  mysql -uadmin psa -e 'REPLACE INTO misc VALUES ("disable_check_session_ip","true")'
Have more questions? Submit a request
Please sign in to leave a comment.