<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Timeout issues]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4185&amp;type=atom" />
	<updated>2013-11-18T22:19:28Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4185</id>
		<entry>
			<title type="html"><![CDATA[Re: Timeout issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18473#p18473" />
			<content type="html"><![CDATA[<p>Still going back to the login screen, but I&#039;ve seen a different timeout screen, i.e. &quot;Inactivity timeout&quot; which is not the screen I&#039;m seeing while using the software.</p><p>This is pointing me to some flaw in the session manager, it seems sometimes it drops the session and fires the login page again. As ion said above &quot;sometimes the menu and the footer shows up&quot; so it sometimes drops the session while the page is rendering.</p>]]></content>
			<author>
				<name><![CDATA[webturner]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18761</uri>
			</author>
			<updated>2013-11-18T22:19:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18473#p18473</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Timeout issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18462#p18462" />
			<content type="html"><![CDATA[<p>A little change in php.ini and a restart of apache httpd has fixed the datetime. I&#039;ll see if i still get timeouts later.</p><p>[Date]<br />; Defines the default timezone used by the date functions<br />; http://php.net/date.timezone<br />;date.timezone = &quot;America/Los_Angeles&quot;<br />date.timezone = &quot;Europe/London&quot;</p>]]></content>
			<author>
				<name><![CDATA[webturner]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18761</uri>
			</author>
			<updated>2013-11-17T11:07:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18462#p18462</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Timeout issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18461#p18461" />
			<content type="html"><![CDATA[<p>Ion&#039;s tweak didn&#039;t work for me.</p><p>I don&#039;t know if it&#039;s related but the time in the footer is -8 hours, i.e. PST timezone instead of GMT. I&#039;ll try setting the company timeout to 29400 seconds, i.e. 8 hours 10 minutes.</p>]]></content>
			<author>
				<name><![CDATA[webturner]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18761</uri>
			</author>
			<updated>2013-11-17T10:54:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18461#p18461</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Timeout issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18460#p18460" />
			<content type="html"><![CDATA[<p>I&#039;m having a similar problem on a new install, downloaded today.</p><p>I&#039;m running FA on a WAMP server downloaded from bitnami.com/stack/wamp (v5.4.22) this is running on Win7 ultimate 64bit. This server is on my home LAN and I&#039;m running the UI in Chrome from my laptop. </p><p>From the above comments...<br />my ip addresses are statically set</p><p>php.ini:<br />session.gc_maxlifetime = 1440<br />session.save_path = &quot;E:/BitNami/WAMPST~1.22-/php/tmp&quot;</p><p>looking in the save_path folder there a lots of files in there a few hours old, so i don&#039;t think that&#039;s being garbage collected.</p><p>I&#039;ll try the tweak ion suggested...</p>]]></content>
			<author>
				<name><![CDATA[webturner]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18761</uri>
			</author>
			<updated>2013-11-16T21:08:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18460#p18460</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Timeout issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18055#p18055" />
			<content type="html"><![CDATA[<p>I installed FA and have the same experience.&nbsp; Each link I have to login.&nbsp; The system is unusable (until the issue is fixed).</p><p>This is a bug need to be fixed.&nbsp; I have used many php system and I have never encounter such session timeout issue.</p><p>My webhost is godaddy.&nbsp; I have made the changes to the session.inc based on what I have read from the forum but none resolve the problem.</p><p>I will wait for godaddy&#039;s support to get back to me if they are able to find anything I will share...</p><p>KH</p>]]></content>
			<author>
				<name><![CDATA[khkoh]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18597</uri>
			</author>
			<updated>2013-10-08T10:10:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18055#p18055</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Timeout issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17099#p17099" />
			<content type="html"><![CDATA[<p>The only php.ini that I have on my machine is in /etc/php.ini and it reads:<br />session.gc_maxlifetime = 1440<br />Ion</p>]]></content>
			<author>
				<name><![CDATA[ion]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18154</uri>
			</author>
			<updated>2013-07-22T17:38:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17099#p17099</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Timeout issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17047#p17047" />
			<content type="html"><![CDATA[<p>I did have a similar issue on a local Ubuntu server, where there is a cron job (/etc/cron.d/php5) removing old sessions every 30 minutes. </p><p>On Ubuntu (at least) this makes FA&#039;s login timeout value largely irrelevant as there is an external script purging sessions according to its own settings without FA ever knowing about it. </p><p>I got it sorted by increasing the session.gc_maxlifetime variable in php.ini. (Note that there may be more than one such file, as the main config file can be overridden by an application&#039;s own php.ini. And if you have the PHP CLI package installed, it also has its own php.ini. On a local server, with no other PHP applications, you can safely apply the change to all of them.)</p><p>I don&#039;t know if this applies to the Mac versions, but it could be worth looking into.</p>]]></content>
			<author>
				<name><![CDATA[tm]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17873</uri>
			</author>
			<updated>2013-07-15T17:25:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17047#p17047</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Timeout issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17015#p17015" />
			<content type="html"><![CDATA[<p>I am running everything on localhost so there should be no issues with the client address change. My URL is always (http://localhost/frontaccounting).</p><p>How can I determine if the server is purging the sessions to aggressively? What parameters are determining the purging of the session? I am aware of 2 right now, login timeout and the client&#039;s ip address but those don&#039;t explain the current behaviour. How can I debug this? BTW, I am using Apache/2.2.22.</p><p>One change I made that seems to help, in the frontaccounting/includes/session.inc, in the regenerateSession() function, I changed:<br />&nbsp; &nbsp; &nbsp; &nbsp; $_SESSION[&#039;EXPIRES&#039;] = time() + 10;<br />to<br />&nbsp; &nbsp; &nbsp; &nbsp; $_SESSION[&#039;EXPIRES&#039;] = time() + 100;</p><p>However, I am not sure if this is a good idea. Obviously it will be overwritten with an upgrade. <br />Ion</p><p>P.S.: If I have the login timeout at 1200 will the session expire after 1200s from login regardless of activity or only after 1200s of inactivity (no HTTP requests to the server)?</p>]]></content>
			<author>
				<name><![CDATA[ion]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18154</uri>
			</author>
			<updated>2013-07-10T13:38:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17015#p17015</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Timeout issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17007#p17007" />
			<content type="html"><![CDATA[<p>Could your server could be purging the sessions too aggressively? Or does your client&#039;s IP address change? Apparently that can be the case if you&#039;re connecting with a mobile device.</p>]]></content>
			<author>
				<name><![CDATA[tm]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17873</uri>
			</author>
			<updated>2013-07-10T01:29:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17007#p17007</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Timeout issues]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16993#p16993" />
			<content type="html"><![CDATA[<p>I am constantly being redirected to the login screen when I use the application (in less than one minute).<br />Sometimes the login screen covers the whole page, sometimes the menu and the footer shows up and the login screen is in the middle (seems that each section has it&#039;s own session and expiry time).</p><p>The login timeout in the setup/company setup menu is set to 1200.</p><p>The system is unusable, I can&#039;t enter a journal entry: it times out before I manage to save.</p><p>Any suggestions?</p><p>My environment consists of:<br />FrontAccounting Version 2.3.16 Build 08.05.2013<br />PHP Version 5.3.15<br />Safari Version 6.0.5 (7536.30.1)<br />Mac OS X Lion 10.7.5 (11G63)<br />MySQL 5.5.28</p><p>I would appreciate any input.<br />TIA<br />Ion</p>]]></content>
			<author>
				<name><![CDATA[ion]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18154</uri>
			</author>
			<updated>2013-07-06T03:50:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16993#p16993</id>
		</entry>
</feed>
