• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Session Timeout

Meczup zade

Basic Pleskian
Hello,
I've been using Plesk for at least 3-4 years. But still haven't understood anything about the mechanism behind sessions.
I've edit php.ini as following
Code:
session.cookie_lifetime = 28800
session.gc_maxlifetime = 28800
session.gc_probability = 0
session.gc_divisor = 1000

But users log out in 1 hour without a predictable timeout.
Could anyone help me about it.

Thanks
 
Users get logged out from where, the Plesk interface? Which php.ini did you edit?
 
There are at least two different php.ini on every Plesk server, one belonging to the operating system's PHP and the other belonging to Plesk's PHP. If you've installed alternative PHP versions that come with Plesk, there is one more for each PHP version installed.

In any case, I suggest starting the research with your site's code in order to see how the session is used, what is written to it, what is read from it. There should be no need to adjust php.ini in order to prolong such settings as a log out timeout.
 
There are at least two different php.ini on every Plesk server, one belonging to the operating system's PHP and the other belonging to Plesk's PHP. If you've installed alternative PHP versions that come with Plesk, there is one more for each PHP version installed.

In any case, I suggest starting the research with your site's code in order to see how the session is used, what is written to it, what is read from it. There should be no need to adjust php.ini in order to prolong such settings as a log out timeout.

I'm editing this PHP.ini and every change effects my website but session timeout. (There's only 1 available, that's why I'm saying one PHP.ini file)
Also, I use sessions as following
PHP:
@session_start();
Means, every request creates a session, if they don't have one.
 

Attachments

  • Screenshot_1.png
    Screenshot_1.png
    21.6 KB · Views: 14
Back
Top