<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 4877: auto-redirect to login page after timeout</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4877/" rel="alternate"/><link href="https://sourceforge.net/p/phpmyadmin/bugs/4877/feed.atom" rel="self"/><id>https://sourceforge.net/p/phpmyadmin/bugs/4877/</id><updated>2015-07-10T01:37:23.353000Z</updated><subtitle>Recent changes to 4877: auto-redirect to login page after timeout</subtitle><entry><title>#4877 auto-redirect to login page after timeout</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4877/?limit=25#cab8" rel="alternate"/><published>2015-07-10T01:37:23.353000Z</published><updated>2015-07-10T01:37:23.353000Z</updated><author><name>Ryan Murphy</name><uri>https://sourceforge.net/u/murftown/</uri></author><id>https://sourceforge.netc3a6119dd41c5dff16338af268add1edfaa964b2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I also get logged out quite frequently when I use phpmyadmin at work.  I don't know what my php.ini session timeout setting says but I'll check.  I agree with the idea of defaulting to longer, or possibly just using the value of the php setting to automatically configure the phpmyadmin setting (use ini_get).&lt;/p&gt;
&lt;p&gt;Hugues' idea of using ini_set to prolong the session seems good!  I don't know if that is one of the settings you can change at runtime.&lt;/p&gt;
&lt;p&gt;I understand that the docs are giving the security advice of having the session not be too long.  Maybe it could ask the user the first time it comes up, and mention the warning then?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4877 auto-redirect to login page after timeout</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4877/?limit=25#1042" rel="alternate"/><published>2015-05-20T08:59:28.844000Z</published><updated>2015-05-20T08:59:28.844000Z</updated><author><name/><uri>https://sourceforge.net</uri></author><id>https://sourceforge.net0b7ed41e138be4ab3bc11c86ada7ccfa4b154c00</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;just fixed it&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4877 auto-redirect to login page after timeout</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4877/?limit=25#eaa8/1999/b049" rel="alternate"/><published>2015-05-10T21:11:00.446000Z</published><updated>2015-05-10T21:11:00.446000Z</updated><author><name>Hugues Peccatte</name><uri>https://sourceforge.net/u/tithugues/</uri></author><id>https://sourceforge.neta422efceb1240ee202773b52abd21a90ed75cd75</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Marc,&lt;br /&gt;
Could we imagine to get the session.gc_maxlifetime by ini_get?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4877 auto-redirect to login page after timeout</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4877/?limit=25#26df" rel="alternate"/><published>2015-05-01T13:47:37.086000Z</published><updated>2015-05-01T13:47:37.086000Z</updated><author><name>Marc </name><uri>https://sourceforge.net/u/mokraemer/</uri></author><id>https://sourceforge.net93b8c2c5ea30e4356df90c482ec9794176ed80f6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;there is one more thing with this automatic redirect:&lt;br /&gt;
if you have more than one open window of phpmyadmin - which is my default, the other windows "close" even if you do queries on the others, so the cookie and the php-session do not expire.&lt;/p&gt;
&lt;p&gt;If you don't check your other windows &amp;amp; relogin the one where the session was ended by js, the php session is closed &amp;amp; all other windows don't work any more due to changed session-id.&lt;/p&gt;
&lt;p&gt;For you as a background: when I'm preparing queries in applications, I open a few tables in different browser tabs, to have the table structure of all used tables side by side. After that I determine which collums to select, what to join and how based upon the indeces. I think this is a very common way of accessing the databases.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4877 auto-redirect to login page after timeout</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4877/?limit=25#dc23" rel="alternate"/><published>2015-04-29T14:03:27.649000Z</published><updated>2015-04-29T14:03:27.649000Z</updated><author><name>Marc </name><uri>https://sourceforge.net/u/mokraemer/</uri></author><id>https://sourceforge.nete3b99701c4bbe49e24d40311f746636e0e6688ec</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hey, I'm still not speaking about changing the logout time itself, but only the automatic redirect to the login page, which eleminates all query results. For this, I see no reason.&lt;br /&gt;
Here we are speaking about phpmyadmin - an application which is used by professionals - mostly on a fixed computer with screen-lock. In the rare circumstances where a public available terminal is used, the user will surely close all browsers, tabs etc. And since on these terminals you can't be sure a keylogger is installed, you should never do this.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4877 auto-redirect to login page after timeout</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4877/?limit=25#c616/198c" rel="alternate"/><published>2015-04-29T10:15:12.902000Z</published><updated>2015-04-29T10:15:12.902000Z</updated><author><name>Marc Delisle</name><uri>https://sourceforge.net/u/lem9/</uri></author><id>https://sourceforge.netffea3398e9f72fcbb2caa3bf5a7aa8e0ab40808b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Session is used for many things; the most important of them is probably our protection token.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4877 auto-redirect to login page after timeout</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4877/?limit=25#c616" rel="alternate"/><published>2015-04-28T19:59:19.378000Z</published><updated>2015-04-28T19:59:19.378000Z</updated><author><name>Olaf van der Spek</name><uri>https://sourceforge.net/u/olafvdspek/</uri></author><id>https://sourceforge.net119a00ecae24560244a84f95836093459ba81cff</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I meant to not require the PHP session data.. What's stored there anyway?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4877 auto-redirect to login page after timeout</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4877/?limit=25#cf7d/5009" rel="alternate"/><published>2015-04-28T19:49:43.350000Z</published><updated>2015-04-28T19:49:43.350000Z</updated><author><name>Marc Delisle</name><uri>https://sourceforge.net/u/lem9/</uri></author><id>https://sourceforge.net132126fa43e64290c85f3653b13212def56958cd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In /setup we have this verification: "Login cookie validity should be set to 1800 seconds (30 minutes) at most. Values larger than 1800 may pose a security risk such as impersonation."&lt;/p&gt;
&lt;p&gt;So it seems logical to follow our own security suggestion, in the default value of LoginCookieValidity. I know that default values cannot please everyone, but we try to set them to the best value for the majority of users.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4877 auto-redirect to login page after timeout</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4877/?limit=25#cf7d" rel="alternate"/><published>2015-04-28T19:19:07.034000Z</published><updated>2015-04-28T19:19:07.034000Z</updated><author><name>Olaf van der Spek</name><uri>https://sourceforge.net/u/olafvdspek/</uri></author><id>https://sourceforge.net57884436b2f5f845fd2fc359742d28b3a089b677</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;What'd be the disadvantage of defaulting to a day, a week or even longer?&lt;/p&gt;
&lt;p&gt;Currently a user would have to change two values instead of one (in php.ini).&lt;/p&gt;
&lt;p&gt;Can't the 'session' be restored even if the PHP session data is lost?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4877 auto-redirect to login page after timeout</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4877/?limit=25#eaa8/1999" rel="alternate"/><published>2015-04-28T19:12:24.586000Z</published><updated>2015-04-28T19:12:24.586000Z</updated><author><name>Marc Delisle</name><uri>https://sourceforge.net/u/lem9/</uri></author><id>https://sourceforge.net7411e41d7d0339c1e08d0a7cea8ca9ff652ca194</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Olaf,&lt;br /&gt;
you are probably referring to the default value of the LoginCookieValidity directive. According to libraries/config.default.php, this value of 1440 seconds was chosen to match php.ini's same default value for session.gc_maxlifetime. This also has a value of 1440 in the suggested php.ini for production, in PHP 5.3 and 7.0 (see php.ini-production).&lt;/p&gt;
&lt;p&gt;We have no way of knowing what is the value of session.gc_maxlifetime for most users, so we used the proposed default value of php.ini.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>