<div dir="ltr">On Sun, Jan 21, 2018 at 12:37 PM, Ronald Barnes <span dir="ltr"><<a href="mailto:ron@ronaldbarnes.ca" target="_blank">ron@ronaldbarnes.ca</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Khalid Baheyeldin wrote on 2018-01-21 08:07 AM:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
First a side point: Why PHP 7.1? The 16.04 LTS version is 7.0 and it<br>
runs Drupal 7 successfully.<br>
</blockquote>
<br></span>
I've had so many issues setting up this little server that I'd switched<br>
to PHP 5.6 to see if that helped.<br>
<br>
It didn't, but I recall from an answer you gave on a previous question<br>
that Drupal 7 and PHP 7 worked together fine.<br>
<br>
<br>
So, since everything was mostly working save this one issue, I switched<br>
back to PHP 7, but saw 7.0, 7.1, and 7.2 available.<br>
<br>
I chose the safest looking (middle) option.<span class=""><br></span></blockquote><div><br></div><div>Hmmm. <br><br>I only see 7.0 in the repositories for 16.04 LTS. <br><br>But if it works, don't fix it.<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Second, check the settings.php for each site, and make sure that you<br>
have values for the following:<br>
<br>
ini_set('session.gc_maxlifetim<wbr>e', 200000); ini_set('session.cookie_lifeti<wbr>me', 200000);<br>
</blockquote>
<br></span>
That was the problem!<br>
<br>
For reasons beyond comprehension, some dumbass (*cough*) had set those<br>
values to 10 in the distant past.<br></blockquote><div><br></div><div>Correction and clarification:<br><br></div><div>The default value for the second parameter is 2,000,000, not 200,000 (without commas<br>of course). It is an odd number that we've had in Drupal for maybe 15 years. <br><br>It is the number of seconds to keep the session cookie, so the default is 23+ days. <br><br></div><div>Adjust up or down for how long you want users logged in (including you), and after<br></div><div>that time has elapsed, they will be logged out automatically (the browser expires the <br></div><div>cookie).<br></div></div><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Khalid M. Baheyeldin<br><a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br>Fast Reliable Drupal<br>Drupal optimization, development, customization and consulting.<br>Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra<br>Simplicity is the ultimate sophistication. -- Leonardo da Vinci<br>For every complex problem, there is an answer that is clear, simple, and wrong." -- H.L. Mencken<br></div>
</div></div>