<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Found: Redirect to login after every click]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9682&amp;type=atom" />
	<updated>2022-04-18T18:29:58Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9682</id>
		<entry>
			<title type="html"><![CDATA[Re: Found: Redirect to login after every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40884#p40884" />
			<content type="html"><![CDATA[<p>Namaskar,</p><p>I assume you are running on XAMPP, just need to configure SSL.</p><p>Ref: https://medium.com/@ajtech.mubasheer/setup-https-in-xampp-for-localhost-bc3d01393f31</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[nishant_kumar]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=46624</uri>
			</author>
			<updated>2022-04-18T18:29:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40884#p40884</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Found: Redirect to login after every click]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40612#p40612" />
			<content type="html"><![CDATA[<p>Hi,</p><p>just for anybody who is not running SSL on their server.</p><p>Did a new install 2.4.11, and every time I clicked on any link, it went back to the login page and after new login to link destination.</p><p>Found the culprit after a while of searching ...</p><p>In includes/session.inc, function sessionStart:</p><p>$https = isset($secure) ? $secure : (!empty($_SERVER[&#039;HTTPS&#039;]) &amp;&amp; $_SERVER[&#039;HTTPS&#039;] !== &#039;off&#039;);</p><p>$https got set to 1, even though I&#039;m definitely not running https.</p><p>Further search is on line 405 (Or around there ... forgive me for not trying to remove all my little debugs)</p><p>$Session_manager-&gt;sessionStart(&#039;FA&#039;.md5(dirname(__FILE__)), 0, &#039;/&#039;, null, True);</p><p>That sets $secure=True and in turn sets $https above to 1.</p><p>That results into cookie parameters being wrong and the session being restarted all the time.</p><p>Hope it helps.</p>]]></content>
			<author>
				<name><![CDATA[arcon]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=46461</uri>
			</author>
			<updated>2022-02-05T04:01:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40612#p40612</id>
		</entry>
</feed>
