<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — login repeats with every click]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9606&amp;type=atom" />
	<updated>2022-01-25T03:18:12Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9606</id>
		<entry>
			<title type="html"><![CDATA[Re: login repeats with every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40555#p40555" />
			<content type="html"><![CDATA[<p>On http call, a check if https exists and if so an appropriate https redirection in FA would be good.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2022-01-25T03:18:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40555#p40555</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: login repeats with every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40545#p40545" />
			<content type="html"><![CDATA[<p>Recognising http vs https is how it worked before the change.&nbsp; But this means that once logged in to your installation via http, it willl be selected always on later logins (unless there is automatic http&gt;https redirection). Logging via http means sending password in plain, which is completely unsecure and should be avoided if possible.<br />IMO user safety should be prioritized when dealing with sensitive data (like accounting), so sending cookies only via secure channel is just better policy&nbsp; default. Admin choice to lower down security is now required to be made as conscious decision, and should not depend on arbitrary ISP server settings.<br />J.</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2022-01-24T08:56:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40545#p40545</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: login repeats with every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40542#p40542" />
			<content type="html"><![CDATA[<p>Effective workaround to use the newer commit only for <strong>https</strong> and not for <strong>http</strong>:</p><p>Replace hardcoded line 14 of <strong>includes/session.inc</strong>:<br /></p><div class="codebox"><pre><code>define(&#039;SECURE_ONLY&#039;, true);</code></pre></div><p>to be <br /></p><div class="codebox"><pre><code>define(&#039;SECURE_ONLY&#039;, (parse_url($_SERVER[&#039;REQUEST_URI&#039;], PHP_URL_SCHEME) == &#039;https&#039;));</code></pre></div><p>This way newer installs will not break when not using https. The last few times, the released versions seem to have some showstopper for existing users. This will only make existing users especially on legacy systems not to upgrade as that would warrant &quot;consultant costs&quot;. FA should herd and retain it&#039;s flock as that is where the network wealth of the project lies - bulk satisfied standard users who can upgrade atleast in minor versions safely.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2022-01-24T05:00:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40542#p40542</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: login repeats with every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40539#p40539" />
			<content type="html"><![CDATA[<p>It is then better not to be hardcoded as a define but dynamically computed if https is in the URL. As it stands after the <a href="https://github.com/FrontAccountingERP/FA/commit/b1e5569c496a37d519fdf009255b11ab03589c00">current commit</a>, we still need to set the define manually.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2022-01-24T02:59:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40539#p40539</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: login repeats with every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40535#p40535" />
			<content type="html"><![CDATA[<p>This change was introduced to enforce secure session in FA, so all works as expected if FA is accessed via https. <br />For rare situations when https is not available, additional configuration value could be handy, so we have <a href="https://sourceforge.net/p/frontaccounting/git/ci/b1e5569c496a37d519fdf009255b11ab03589c00/">added it</a>.<br />Now, if you know what you are doing, you can switch off https cookies enforcing in session.inc. <br />Unfortunately&nbsp; this option cannot be added in sysprefs/config.php because the settings are not available before session is started.<br />J.</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2022-01-23T20:51:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40535#p40535</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: login repeats with every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40529#p40529" />
			<content type="html"><![CDATA[<p>Hello guys,</p><p>Thanks for reporting this issue.</p><p>I have asked Itronics to look into it and fix something.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2022-01-22T21:29:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40529#p40529</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: login repeats with every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40514#p40514" />
			<content type="html"><![CDATA[<p>@joe: This needs to be automagically set based on PHP version or by a server wide config variable.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2022-01-21T03:04:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40514#p40514</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: login repeats with every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40438#p40438" />
			<content type="html"><![CDATA[<p>I recently made a fresh install and session.inc created continuous timeouts with redirects to the login page (ubuntu 20.04, PHP 7.4 as well as PHP8.0, FA 2.4.11). I was looking for hours at sessions with webservers and cookies but finally notrinos found the real culprit. Thanks.</p><p>WORKS: <br />$Session_manager-&gt;sessionStart(&#039;FA&#039;.md5(dirname(__FILE__)));</p><p>CONTINUOUSLY TIMEOUTS SESSIONS: <br />$Session_manager-&gt;sessionStart(&#039;FA&#039;.md5(dirname(__FILE__)), 0, &#039;/&#039;, null, True);</p>]]></content>
			<author>
				<name><![CDATA[paschauf]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=46411</uri>
			</author>
			<updated>2022-01-05T03:00:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40438#p40438</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: login repeats with every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40408#p40408" />
			<content type="html"><![CDATA[<p>It&#039;s worked. Great. Thank you notrinos.</p>]]></content>
			<author>
				<name><![CDATA[mosaicmerchant]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45348</uri>
			</author>
			<updated>2021-12-28T13:20:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40408#p40408</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: login repeats with every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40404#p40404" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>notrinos wrote:</cite><blockquote><p>The problem has been firing from this commit: <a href="https://github.com/FrontAccountingERP/FA/commit/ccca49a7020c3121ce31d0318fcf9807ada68667">https://github.com/FrontAccountingERP/F … 07ada68667</a><br />Someone who faced the same issue after upgrade FA to 2.4.11 can get solution by roll back the file session.inc to state it was before the commit.<br />Or just replace the session.inc with this file:<br /><a href="https://raw.githubusercontent.com/FrontAccountingERP/FA/3593bf5e540f7bb5ce1fd084eeba83a88b0c1518/includes/session.inc">https://raw.githubusercontent.com/Front … ession.inc</a></p></blockquote></div><p>Great, it&#039;s work</p>]]></content>
			<author>
				<name><![CDATA[risingstar]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=46016</uri>
			</author>
			<updated>2021-12-27T12:58:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40404#p40404</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: login repeats with every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40402#p40402" />
			<content type="html"><![CDATA[<p>Thanks notrinos!<br />Looks like that works.</p>]]></content>
			<author>
				<name><![CDATA[PatJr]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18691</uri>
			</author>
			<updated>2021-12-23T15:42:05Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40402#p40402</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: login repeats with every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40401#p40401" />
			<content type="html"><![CDATA[<p>The problem has been firing from this commit: <a href="https://github.com/FrontAccountingERP/FA/commit/ccca49a7020c3121ce31d0318fcf9807ada68667">https://github.com/FrontAccountingERP/F … 07ada68667</a><br />Someone who faced the same issue after upgrade FA to 2.4.11 can get solution by roll back the file session.inc to state it was before the commit.<br />Or just replace the session.inc with this file:<br /><a href="https://raw.githubusercontent.com/FrontAccountingERP/FA/3593bf5e540f7bb5ce1fd084eeba83a88b0c1518/includes/session.inc">https://raw.githubusercontent.com/Front … ession.inc</a></p>]]></content>
			<author>
				<name><![CDATA[notrinos]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36772</uri>
			</author>
			<updated>2021-12-23T12:29:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40401#p40401</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: login repeats with every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40400#p40400" />
			<content type="html"><![CDATA[<p>I am facing same problem here. Yesterday I upgrade 2.4.11 and since then it redirected me to the login page. Version 2.4.10 seems fine.</p>]]></content>
			<author>
				<name><![CDATA[mosaicmerchant]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45348</uri>
			</author>
			<updated>2021-12-23T08:12:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40400#p40400</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: login repeats with every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40395#p40395" />
			<content type="html"><![CDATA[<p>Thank You kvvaradha for your feedback.<br />I&#039;ll have a try at those suggestions.</p><p>The browsers, I did try 3 different ones and got the same results.<br />I put 2.4.10 back in and it started working fine again. </p><p>Thanks Again and Merry Christmas 2021!</p>]]></content>
			<author>
				<name><![CDATA[PatJr]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18691</uri>
			</author>
			<updated>2021-12-21T04:05:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40395#p40395</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: login repeats with every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40394#p40394" />
			<content type="html"><![CDATA[<p>Sometimes it happened, if you hosted it on web server and try to access from unstable internet. </p><p>Sometimes it happens with browser cookie or session level. So clear the cache and try again.</p><p> Sometimes it happens with program level. The php version also sometimes issues bug during creation of session.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2021-12-21T03:51:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40394#p40394</id>
		</entry>
</feed>
