<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Session logout every new page]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5265&amp;type=atom" />
	<updated>2020-01-11T13:04:59Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5265</id>
		<entry>
			<title type="html"><![CDATA[Re: Session logout every new page]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36782#p36782" />
			<content type="html"><![CDATA[<p>Are you running Chrome in incognito mode per chance?&nbsp; If so, there isn&#039;t any session saved on the server.&nbsp; &nbsp;Try using a different browser.&nbsp; Does the problem occur in all browsers?&nbsp; If so, you will have to trace down the problem.&nbsp; Use print() followed by die() before the session/server check.</p>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2020-01-11T13:04:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36782#p36782</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Session logout every new page]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36776#p36776" />
			<content type="html"><![CDATA[<p>I just did a fresh install of FA 2.4.7 and had this same problem.&nbsp; I simply couldn&#039;t get the program to work correctly until I commented out the line in session.inc as shown:</p><p>&nbsp; &nbsp; &nbsp; &nbsp; //if ($_SESSION[&#039;IPaddress&#039;] != $_SERVER[&#039;REMOTE_ADDR&#039;])<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //return false;</p><p>How can I get FA to work correctly without hobbling its security in this way?</p>]]></content>
			<author>
				<name><![CDATA[trentdavis]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=1335</uri>
			</author>
			<updated>2020-01-10T03:01:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36776#p36776</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Session logout every new page]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31769#p31769" />
			<content type="html"><![CDATA[<p>I solved this by commenting the following 2 lines in session.inc</p><p>&nbsp; &nbsp; &nbsp; &nbsp; if ($_SESSION[&#039;IPaddress&#039;] != $_SERVER[&#039;REMOTE_ADDR&#039;])<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;</p>]]></content>
			<author>
				<name><![CDATA[mark0300]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20216</uri>
			</author>
			<updated>2018-06-02T03:52:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31769#p31769</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Session logout every new page]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21270#p21270" />
			<content type="html"><![CDATA[<p>Use the debug flags in the config file.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-10-28T13:09:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21270#p21270</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Session logout every new page]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21269#p21269" />
			<content type="html"><![CDATA[<p>I admit to being a bit lost here. How can I put trace statements into the code to see where the flow goes? I tried print() here and there, but it never appears on the page. How do people normally debug this kind of thing?</p>]]></content>
			<author>
				<name><![CDATA[garthwimbush@gmail.com]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19729</uri>
			</author>
			<updated>2014-10-28T12:01:40Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21269#p21269</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Session logout every new page]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21217#p21217" />
			<content type="html"><![CDATA[<p>Session is not working . Check the sessions.inc and current_user.inc for more details,&nbsp; especially the login functions and Session create functions.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2014-10-24T04:37:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21217#p21217</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Session logout every new page]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21215#p21215" />
			<content type="html"><![CDATA[<p>Please check the config.php file for any missing entries that became available after your initial version was installed.</p><p>Also ss if you can hardcode the actual session path in your php.ini or since you are on a shared hosting platform see if a local php.ini overides file is possible.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-10-24T03:37:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21215#p21215</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Session logout every new page]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21213#p21213" />
			<content type="html"><![CDATA[<p>apmuthu - I assume you are talking about the login timeout in the Company Setup page - I increased this to 1200, but it didn&#039;t help.</p>]]></content>
			<author>
				<name><![CDATA[garthwimbush@gmail.com]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19729</uri>
			</author>
			<updated>2014-10-23T21:31:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21213#p21213</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Session logout every new page]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21212#p21212" />
			<content type="html"><![CDATA[<p>Try to increase the Company Setup&#039;s Time out from 600 seconds to something bigger.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-10-23T18:11:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21212#p21212</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Session logout every new page]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21209#p21209" />
			<content type="html"><![CDATA[<p>Also, while I am taken back to the login screen on each new click, logging in again returns me to where i would have been after the click.</p>]]></content>
			<author>
				<name><![CDATA[garthwimbush@gmail.com]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19729</uri>
			</author>
			<updated>2014-10-23T10:38:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21209#p21209</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Session logout every new page]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21208#p21208" />
			<content type="html"><![CDATA[<p>I uncommented:<br />ini_set(&#039;session.save_path&#039;, dirname(__FILE__).&#039;/../tmp/&#039;);<br />in session.inc, and re-logged in, but the session is still terminating each click. The session files are appearing in the tmp directory.<br />Is this what you meant?</p>]]></content>
			<author>
				<name><![CDATA[garthwimbush@gmail.com]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19729</uri>
			</author>
			<updated>2014-10-23T10:32:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21208#p21208</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Session logout every new page]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21199#p21199" />
			<content type="html"><![CDATA[<p>Maybe you need to check the session configuration in the server, I&#039;ve encountered this because the session path must be explicitly written in the code.</p>]]></content>
			<author>
				<name><![CDATA[barbarian]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18954</uri>
			</author>
			<updated>2014-10-22T22:09:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21199#p21199</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Session logout every new page]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21196#p21196" />
			<content type="html"><![CDATA[<p>Hi All,<br />I have FA installed on a Go-Daddy hosted Windows server. It has been trouble free for 6 months, but since about a month ago it is going back to the login screen every click. I did have version 2.3.19 installed, and upgraded to 2.3 22, but the problem remains. It doesn&#039;t seem to be the IP address changing regularly as was mentioned elswhere in the forum, but does see to be something GoDady has done (though they won&#039;t admit it). Nothing useful appears in the logs. Does anyone have any ideas?</p>]]></content>
			<author>
				<name><![CDATA[garthwimbush@gmail.com]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19729</uri>
			</author>
			<updated>2014-10-22T11:35:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21196#p21196</id>
		</entry>
</feed>
