<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — System being logged out]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8570&amp;type=atom" />
	<updated>2020-01-14T20:05:10Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8570</id>
		<entry>
			<title type="html"><![CDATA[Re: System being logged out]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36812#p36812" />
			<content type="html"><![CDATA[<p>Regenerating sessions periodically is used to make session hijacking more difficult.&nbsp; I suppose if you are not concerned about that you could change the code to not do it and it could make debugging easier.&nbsp; But my guess is that following this trail will get cold.&nbsp; The old session is probably the one that is expiring and you don&#039;t care about that anyway.</p>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2020-01-14T20:05:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36812#p36812</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: System being logged out]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36810#p36810" />
			<content type="html"><![CDATA[<p>I have debugged the issue in detail and found that calling the below function is making the system being logout.</p><p><strong>function regenerateSession()</strong></p><p>When in one session.inc call the above function is called and regenerates the new session id</p><p>On the next call when </p><p><strong>function validateSession()</strong> is called it returns <strong>false</strong> on following condition</p><p>if (isset($_SESSION[&#039;EXPIRES&#039;]) &amp;&amp; $_SESSION[&#039;EXPIRES&#039;] &lt; time()) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />&nbsp; &nbsp; &nbsp; &nbsp; }</p><p>Any idea? Why regenerate is important? and this condition is failing?</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2020-01-14T17:09:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36810#p36810</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: System being logged out]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36642#p36642" />
			<content type="html"><![CDATA[<p>Check the <a href="https://frontaccounting.com/fawiki/index.php?n=Main.Installation">wiki</a> for the last entry in Pre-Requisites.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-12-18T04:31:40Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36642#p36642</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: System being logged out]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36635#p36635" />
			<content type="html"><![CDATA[<p>You can find out what session the browser was using before the logout event and then see if it still exists or is corrupted in some way after the logout event.&nbsp; For Firefox, open the storage inspector with shift F9.&nbsp; The session name is stored as a cookie.&nbsp; After the unexpected logout, look for the session file on the server.&nbsp; If it is gone, then you know that something on the server removed it.</p><p>If it is still there, then the problem becomes more interesting, as then you will need to examine the file for clues why FA could not use it.&nbsp; I would also guess that if it were still there, FA would display &quot;authorization timeout&quot; or some other error message.</p><p>Note that when a session file is removed unexpectedly, FA will initiate a logout and create a new session.&nbsp; So looking for the session cookie name after logout tells you nothing.&nbsp; FA apparently does not issue an error message if its cookie is gone.&nbsp; The screen display is the same as when a brand new session is initiated with FA.</p>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2019-12-17T12:51:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36635#p36635</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: System being logged out]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36631#p36631" />
			<content type="html"><![CDATA[<p>Sometimes it happens. If you clear your browser cache the issue will be fixed. But I didn&#039;t get exact solution within Fa program itself.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2019-12-17T07:04:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36631#p36631</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: System being logged out]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36627#p36627" />
			<content type="html"><![CDATA[<p>@Braath, thanks. The logout is not &quot;Authorization Timeout&quot;. Suddenly the main login screen appears. I have increased the session timeout to 36000 secs in both php.ini and company setup.</p><p>How can I set a monitoring on Session. Any hint?</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2019-12-17T05:28:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36627#p36627</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: System being logged out]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36620#p36620" />
			<content type="html"><![CDATA[<p>If you see the message &quot;Authorization timeout&quot;, then FA is the culprit.&nbsp; If not, then the php session was removed/corrupted/not accessible.&nbsp; The php maximum session lifetime is stored in php.ini.&nbsp; On ubuntu, the sessions are stored in /var/lib/php/sessions.&nbsp; &nbsp;You can monitor the session file in this directory and see what happened to it when the client was logged out.&nbsp; What your client was doing in FA at the time should have no bearing on the logout.</p>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2019-12-16T16:16:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36620#p36620</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[System being logged out]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36618#p36618" />
			<content type="html"><![CDATA[<p>One of my clients have 300-400 invoices on daily basis.</p><p>While punching invoices, he is facing abnormally system being logged out.</p><p>No particular behavior or error is recorded.</p><p>Sometimes it logs out after 2 invoices and sometimes after 8 invoices.</p><p>Any ideas?</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2019-12-16T13:41:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36618#p36618</id>
		</entry>
</feed>
