<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — FA 2.4.9 Login Error Msg]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9157&amp;type=atom" />
	<updated>2021-01-21T15:31:10Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9157</id>
		<entry>
			<title type="html"><![CDATA[Re: FA 2.4.9 Login Error Msg]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39023#p39023" />
			<content type="html"><![CDATA[<p>It&#039;s working now</p><p>Thanks!</p>]]></content>
			<author>
				<name><![CDATA[dyrandz]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41742</uri>
			</author>
			<updated>2021-01-21T15:31:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39023#p39023</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA 2.4.9 Login Error Msg]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39021#p39021" />
			<content type="html"><![CDATA[<p>Fixed by Janusz</p><p>https://sourceforge.net/p/frontaccounting/git/ci/e7fb3a02d86a3bc88387280561d802d4744e8885/</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2021-01-21T07:19:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39021#p39021</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA 2.4.9 Login Error Msg]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39017#p39017" />
			<content type="html"><![CDATA[<p>Thanks tom</p>]]></content>
			<author>
				<name><![CDATA[dyrandz]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41742</uri>
			</author>
			<updated>2021-01-20T01:38:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39017#p39017</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA 2.4.9 Login Error Msg]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39005#p39005" />
			<content type="html"><![CDATA[<p>This was in the file:</p><div class="quotebox"><blockquote><p>includes/session.inc</p></blockquote></div><p>Line 556 onwards</p>]]></content>
			<author>
				<name><![CDATA[tom.horton]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=44772</uri>
			</author>
			<updated>2021-01-19T19:35:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39005#p39005</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA 2.4.9 Login Error Msg]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39003#p39003" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>tom.horton wrote:</cite><blockquote><p>I have managed to isolate the problem. It seems that FA is picking up that a session is still active, from the following code:</p><div class="codebox"><pre><code>if (isset($_SESSION[&#039;timeout&#039;])) {
      include($path_to_root . &quot;/access/login.php&quot;);
      exit;
} else
      login_fail();
}</code></pre></div><p>This is despite you being logged out.</p><p>The only way I managed to fix it myself was by adding another condition to the IF statement:</p><div class="codebox"><pre><code>if (isset($_SESSION[&#039;timeout&#039;]) &amp;&amp; ($_SESSION[&#039;timeout&#039;] == &#039;&#039;)) {
      include($path_to_root . &quot;/access/login.php&quot;);
      exit;
} else 
     login_fail();
}</code></pre></div><p>There may be a better solution, but this was the only way I could get the system to pick up an error and show the user.</p><p>Hope this helps.</p></blockquote></div><p>What file to add to this temporary fix?</p>]]></content>
			<author>
				<name><![CDATA[dyrandz]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41742</uri>
			</author>
			<updated>2021-01-19T08:35:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39003#p39003</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA 2.4.9 Login Error Msg]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38970#p38970" />
			<content type="html"><![CDATA[<p>Done<br />http://mantis.frontaccounting.com/view.php?id=5322</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2021-01-17T14:13:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38970#p38970</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA 2.4.9 Login Error Msg]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38969#p38969" />
			<content type="html"><![CDATA[<p>Definitely worth logging to see if a better solution can be found.</p>]]></content>
			<author>
				<name><![CDATA[tom.horton]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=44772</uri>
			</author>
			<updated>2021-01-17T14:11:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38969#p38969</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA 2.4.9 Login Error Msg]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38968#p38968" />
			<content type="html"><![CDATA[<p>This was introduced with 2.4.9 previous releases did not have this problem.<br />I will put this one in mantis.<br />Thx.. tom.horton</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2021-01-17T14:05:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38968#p38968</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA 2.4.9 Login Error Msg]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38967#p38967" />
			<content type="html"><![CDATA[<p>I have managed to isolate the problem. It seems that FA is picking up that a session is still active, from the following code:</p><div class="codebox"><pre><code>if (isset($_SESSION[&#039;timeout&#039;])) {
      include($path_to_root . &quot;/access/login.php&quot;);
      exit;
} else
      login_fail();
}</code></pre></div><p>This is despite you being logged out.</p><p>The only way I managed to fix it myself was by adding another condition to the IF statement:</p><div class="codebox"><pre><code>if (isset($_SESSION[&#039;timeout&#039;]) &amp;&amp; ($_SESSION[&#039;timeout&#039;] == &#039;&#039;)) {
      include($path_to_root . &quot;/access/login.php&quot;);
      exit;
} else 
     login_fail();
}</code></pre></div><p>There may be a better solution, but this was the only way I could get the system to pick up an error and show the user.</p><p>Hope this helps.</p>]]></content>
			<author>
				<name><![CDATA[tom.horton]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=44772</uri>
			</author>
			<updated>2021-01-17T13:34:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38967#p38967</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA 2.4.9 Login Error Msg]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38947#p38947" />
			<content type="html"><![CDATA[<p>I also experienced same behavior of 2.4.9</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2021-01-17T02:57:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38947#p38947</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[FA 2.4.9 Login Error Msg]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38946#p38946" />
			<content type="html"><![CDATA[<p>Every time I input an incorrect password, I didn&#039;t see the error message. It will just get back to blank username and password field.</p><p>Regards<br />-Dyrandz</p>]]></content>
			<author>
				<name><![CDATA[dyrandz]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41742</uri>
			</author>
			<updated>2021-01-17T02:38:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38946#p38946</id>
		</entry>
</feed>
