<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Session Error Message]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8407</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8407&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Session Error Message.]]></description>
		<lastBuildDate>Mon, 13 Apr 2020 22:34:03 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Session Error Message]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37259#p37259</link>
			<description><![CDATA[<p>I also have this problem in google chrome. It always occur but in opera, it&nbsp; rarely occur if not at all. What is the best solution here? I am using 2.4.8</p>]]></description>
			<author><![CDATA[null@example.com (barbarian)]]></author>
			<pubDate>Mon, 13 Apr 2020 22:34:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37259#p37259</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Error Message]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36292#p36292</link>
			<description><![CDATA[<p>Just an update to this in case others have the same technical issue.</p><p>It seems setting an antivirus exemption for httpd and mysqld seems to resolve the problem for now (note: client and web server and db server are one and the same computer using XAMPP).</p><p>Also see this link: https://docs.bitnami.com/installer/faq/windows-faq/configuration/configure-antivirus-windows/#disable-execution-scans</p><p>Other things to look at are giving explicit firewall exclusions for localhost and also setting the browser (in my case Firefox) to NO PROXY.</p><p>Probably it was the antivirus setting that helped to resolve the issue.&nbsp; Was using Gravity Zone End Point Protection and set it to scan all processes aggressively.</p>]]></description>
			<author><![CDATA[null@example.com (kanay)]]></author>
			<pubDate>Mon, 21 Oct 2019 01:23:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36292#p36292</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Error Message]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36035#p36035</link>
			<description><![CDATA[<p>This is not my area of expertise, as I am just guessing at this.&nbsp; So take this with a grain of salt.</p><p>Although session data is stored on the server, FA chose to store the session id as a cookie on the browser, rather than in the URL.&nbsp; Both mechanisms can be vulnerable to session stealing, and FA has code to detect it, perhaps by looking at the ip address.</p><p>Running Chrome in incognito mode could be the source of the problem, because it will not store the session id cookie.&nbsp; &nbsp;See, https://stackoverflow.com/questions/30475878/remembering-php-session-private-browsing.&nbsp; &nbsp;The selected answer of the question makes a suggestion that a session id could be forged from other server data, but I do not know if FA does that (I doubt it).</p><p>My suggestion on clearing browser cache/cookies was to clear an old session id.&nbsp; I doubt that this would fix anything, but just worth a shot.</p><p>FA already makes extensive use of POST data including hidden fields.&nbsp; I am guessing that the reason why cart was not one of them (coded into SESSION)&nbsp; is because an array is not straightforward to code in this manner, which is why I had to add the serialize/unserialize functions.&nbsp; &nbsp; I am of the opinion that coding the cart into POST data is preferable to SESSION data and solves the multiple tab problem.&nbsp; It eliminates the error message in question and use of the configuration override which could cause other problems.</p>]]></description>
			<author><![CDATA[null@example.com (Braath Waate)]]></author>
			<pubDate>Tue, 17 Sep 2019 12:00:28 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36035#p36035</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Error Message]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36033#p36033</link>
			<description><![CDATA[<p>Browser based cache is different from session cache dished out from the server and used in the intermediary processing scripts thereat. Cookies may store such session cache if poorly designed. Having totally server side processing only without transmission of session variable values and avoiding any hidden fields may be the way forward though it may warrant multiple page navigations to and forth.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 17 Sep 2019 05:29:48 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36033#p36033</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Error Message]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36031#p36031</link>
			<description><![CDATA[<p>Hi Braath,</p><p>I want to put in some more question to this post just to have more clarity.</p><p>You have indicated a scenario where the end user intentionally opens multiple windows or tabs (for different business processes) and by consequence runs into the technical issue.</p><p>Let&#039;s compare this with what I have observed.</p><p>The technical issue that I have encountered is happening even if running Chrome in incognito mode (thus no cache) and there is only 1 one window with 1 tab open and the first action that I am trying to do is a direct invoice immediately after login.</p><p>Further more, the technical issue is most often encountered with Chrome and rarely with Firefox.</p><p>As such, could it be that the technical issue that I am encountering is different from what you have described but with a few overlap (similar behaviour and error messages).</p><p>Next, I want to check if it will help to tinker with the php.ini inside XAMPP folder.&nbsp; Specifically those having to do with server caching settings (not very sure if the caching eventually ends up on server side or the client browser side) (*client and server are one and the same computer*).</p><p>Sidenote #1: I only have a lesser than basic knowledge with PHP, sorry.</p><p>Sidenote #2: I think the edit check (for other open FA window and tabs) might be a relevant feature to have.</p>]]></description>
			<author><![CDATA[null@example.com (kanay)]]></author>
			<pubDate>Tue, 17 Sep 2019 03:08:58 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36031#p36031</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Error Message]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36025#p36025</link>
			<description><![CDATA[<p>@Braath, you are right. I think this shall be addressed in the next major release.</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Mon, 16 Sep 2019 14:59:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36025#p36025</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Error Message]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36024#p36024</link>
			<description><![CDATA[<p>Hi Braath,</p><p>Noted with thanks.</p><p>Had a look at the mantis page link.</p><p>I will be doing the edit to config.php for now.&nbsp; Many thanks for the input.</p><p>Will also use Firefox just to be on the safe side.</p><p>Best regards,</p><p>Kanay</p>]]></description>
			<author><![CDATA[null@example.com (kanay)]]></author>
			<pubDate>Mon, 16 Sep 2019 13:47:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36024#p36024</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Error Message]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36023#p36023</link>
			<description><![CDATA[<p>@boxygen:</p><p>I&#039;m guessing no, because the only thing stored in the browser is the session cookie.&nbsp; &nbsp;If this happens again, you might suggest to the client to clear the browser cache and try again.</p><p>My opinion is that storing page operational data in a php session rather than post is bad practice because session is browser wide and poses conflicts with multiple tabs&nbsp; It seems to be a common practice, but one easily avoided.&nbsp; In the aforementioned bug report, all I did was search and replace SESSION with POST, add a hidden cart variable to the form and because the cart was an array, I also had to serialize and unserialize it.&nbsp; So while the bug fix is conceptually simple, it did hit a large number of lines.&nbsp; This fixed the multiple open tab problem for sales, purchasing, and banking.&nbsp; This was essential because often a clerk is reviewing one sales order/purchase/bank transaction in one tab and entering another in another tab.&nbsp; Indeed, I am surprised that no one else complains about this in vanilla FA.</p>]]></description>
			<author><![CDATA[null@example.com (Braath Waate)]]></author>
			<pubDate>Mon, 16 Sep 2019 13:39:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36023#p36023</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Error Message]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36021#p36021</link>
			<description><![CDATA[<p>In my case the hosting server is Linux but client accessing from windows. </p><p>Do I still need to set the above mentioned Syspref variable to 1?</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Mon, 16 Sep 2019 12:48:43 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36021#p36021</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Error Message]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36020#p36020</link>
			<description><![CDATA[<p>You can signup for an account: http://mantis.frontaccounting.com/login_page.php.</p>]]></description>
			<author><![CDATA[null@example.com (Braath Waate)]]></author>
			<pubDate>Mon, 16 Sep 2019 12:22:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36020#p36020</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Error Message]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36019#p36019</link>
			<description><![CDATA[<p>Hi Braath,</p><p>Noted with thanks. Will try the change in settings on config.php .</p><p>I am not able to access http://mantis.frontaccounting.com as I do not have login access to that.</p><p>Please assist to copy and paste the information from there and into this forum post.</p><p>Best regards,</p><p>Kanay</p>]]></description>
			<author><![CDATA[null@example.com (kanay)]]></author>
			<pubDate>Mon, 16 Sep 2019 12:17:08 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36019#p36019</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Error Message]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36018#p36018</link>
			<description><![CDATA[<p>On Windows, change config.php<br /></p><div class="codebox"><pre><code>   /* No check on edit conflicts. Maybe needed to be set to 1 in certains Windows Servers */
    $no_check_edit_conflicts = 1;</code></pre></div><p>Or change the code to allow multiple open tabs by replacing session variables (see, http://mantis.frontaccounting.com/view.php?id=4664).</p>]]></description>
			<author><![CDATA[null@example.com (Braath Waate)]]></author>
			<pubDate>Mon, 16 Sep 2019 11:54:15 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36018#p36018</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Error Message]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36017#p36017</link>
			<description><![CDATA[<p>I am also being reported by one of my client and conditions are same as above.</p><div class="codebox"><pre><code>This edit session has been abandoned by opening sales document in another browser tab. You cannot edit more than one sales document at once.&quot;</code></pre></div><p>But the problem is that this doesn&#039;t always occur so I am still unable to find the reason</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Mon, 16 Sep 2019 11:16:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36017#p36017</guid>
		</item>
		<item>
			<title><![CDATA[Session Error Message]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36016#p36016</link>
			<description><![CDATA[<p>Hi Development Team,</p><p>I regularly get this error message when attempting to do direct invoice.</p><p>&quot;This edit session has been abandoned by opening sales document in another browser tab. You cannot edit more than one sales document at once.&quot;</p><p>The error shows even when there is no other window or tab opened with FA.</p><p>Was running FA 2.4.6<br />OS is Win 7 Pro<br />Chrome (updated) (regular occurrence of error)<br />Firefox (extreme rare occurrence of error)<br />Initially running PHP 5.6.40 (from XAMPP) (error happens)<br />Switch to PHP 7.3.9 (from XAMPP) (to troubleshoot but error still happens)<br />Installed FA 2.4.7 (error still happens)</p><p>I can&#039;t consistently replicate the error and when I click around the interface to recreate the same error, i encountered another issue.&nbsp; The log in instance does an uncommanded log out (in Chrome) .</p><p>So now I have 2 issues: Session abandoned and uncommanded logged off.</p><p>Additional info: Just prior to uncommanded logoff, there seems to be a Chrome windows that pops up and offers to translate the page (Chrome built in page translate).</p><p>I am not able to make sense out of it as everything was more or less okay for the past few years.&nbsp; These started happening in August 2019.</p><p>There was no significant change done to the FA system just prior to the errors showing up.</p><p>Could this be due to any of the following?</p><p>Windows updates?<br />Chrome updates?<br />Chrome change of theme from default to something else?<br />Character encoding in db?<br />Using wrong character encoding when doing restore backup through myPHPadmin?</p><p>I hope someone can help to make sense of these.</p><p>Best regards,</p><p>Kanay</p>]]></description>
			<author><![CDATA[null@example.com (kanay)]]></author>
			<pubDate>Mon, 16 Sep 2019 08:50:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36016#p36016</guid>
		</item>
	</channel>
</rss>
