<?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 Abandoned Error in Windows Server Systems]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=3541</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3541&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Session Abandoned Error in Windows Server Systems.]]></description>
		<lastBuildDate>Mon, 01 Nov 2021 13:27:16 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Session Abandoned Error in Windows Server Systems]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=40191#p40191</link>
			<description><![CDATA[<p>I&#039;m getting this error frequently with FA 2.4.8. The check_edit_conflicts() now has a different signature, and I haven&#039;t investigated exactly why this error is popping up, but it happens when I haven&#039;t even created an invoice in my session, and nobody else is logged in.</p><p>I&#039;m just going to turn off edit checks, for now. When I get time, I might try to gather more diagnostic information.</p><p>(edit: I forgot to mention that I am using a CENTOS 7 Linux server running Apache and PHP 5.6)</p>]]></description>
			<author><![CDATA[null@example.com (oakstreet1)]]></author>
			<pubDate>Mon, 01 Nov 2021 13:27:16 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=40191#p40191</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Abandoned Error in Windows Server Systems]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24350#p24350</link>
			<description><![CDATA[<p>The variable <strong>$no_check_edit_conflicts</strong> can now be removed from FA and the file <strong>sales/includes/sales_ui.inc</strong> can have it&#039;s last function:<br /></p><div class="codebox"><pre><code>function check_edit_conflicts($cartname=&#039;Items&#039;)
{
    global $Ajax, $no_check_edit_conflicts;

    if ((!isset($no_check_edit_conflicts) || $no_check_edit_conflicts==0) &amp;&amp; get_post(&#039;cart_id&#039;) &amp;&amp; $_POST[&#039;cart_id&#039;] != $_SESSION[$cartname]-&gt;cart_id) {
        display_error(_(&#039;This edit session has been abandoned by opening sales document in another browser tab. You cannot edit more than one sales document at once.&#039;));
        $Ajax-&gt;activate(&#039;_page_body&#039;);
        display_footer_exit();
    }
}</code></pre></div><p>changed to:<br /></p><div class="codebox"><pre><code>function check_edit_conflicts($cartname=&#039;Items&#039;)
{
    global $Ajax;

    if (!empty($_SESSION[$cartname]-&gt;cart_id) &amp;&amp; get_post(&#039;cart_id&#039;) &amp;&amp; $_POST[&#039;cart_id&#039;] != $_SESSION[$cartname]-&gt;cart_id) {
        display_error(_(&#039;This edit session has been abandoned by opening sales document in another browser tab. You cannot edit more than one sales document at once.&#039;));
        $Ajax-&gt;activate(&#039;_page_body&#039;);
        display_footer_exit();
    }
}</code></pre></div><p>Steps to check in a fresh FA v2.3 install on Windows XAMPP using <strong>en_US-demo.sql</strong>:<br /><strong>Sales =&gt; Direct Invoice =&gt; Customer =&gt; Ghostbusters</strong><br />No error should crop up.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 25 Sep 2015 21:35:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24350#p24350</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Abandoned Error in Windows Server Systems]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=19089#p19089</link>
			<description><![CDATA[<p>People using Textcart NEED to update textcart if they do sales or po in foreign currency (when the new package is ready).</p>]]></description>
			<author><![CDATA[null@example.com (Ashtonashlee0)]]></author>
			<pubDate>Sat, 25 Jan 2014 06:05:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=19089#p19089</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Abandoned Error in Windows Server Systems]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15448#p15448</link>
			<description><![CDATA[<p>Try the FA v2.3.14 HG Build 3175 available in <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=15447#p15447">post 11 of a thread[</a> here and see if the problem persists.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 04 Feb 2013 01:07:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15448#p15448</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Abandoned Error in Windows Server Systems]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15442#p15442</link>
			<description><![CDATA[<p>I never had an issue with the direct sales invoice to change the branch. Since upgrade to 2.3.13 I get the following message when using direct sales 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>Only one user is logged in and only one invoice.</p><p>If I go the long route by creating an invoice, I am able to change the Barch without an issue.</p><p>Regards</p><p>Wynand</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Sun, 03 Feb 2013 16:58:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15442#p15442</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session Abandoned Error in Windows Server Systems]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14280#p14280</link>
			<description><![CDATA[<p>I am using Ubuntu 12.04, Apache 2.22, PHP 5.3.10, FF 16.0.2.&nbsp; I can cause this error msg to happen by doing:</p><p>Sales &gt; Customer Transaction Inquiry &gt; click on pencil to edit some invoice &gt; Process Invoice then hit back button and then Update</p><p>ed10</p>]]></description>
			<author><![CDATA[null@example.com (ed10)]]></author>
			<pubDate>Fri, 16 Nov 2012 13:49:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14280#p14280</guid>
		</item>
		<item>
			<title><![CDATA[Session Abandoned Error in Windows Server Systems]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14273#p14273</link>
			<description><![CDATA[<p>Bug 1826 on Mantis.</p><p>Joshua (sticmann) reports the problem:<br /></p><div class="codebox"><pre><code>Often on a sales invoice, I get this error without opening any other tabs:</code></pre></div><p><em>&quot;This edit session has been abandoned by opening sales document in another browser tab. <br />You cannot edit more than one sales document at once.&quot;</em><br /></p><div class="codebox"><pre><code> 
I see the function that is throwing the error, but I can&#039;t figure out how to make it stop.
 
We run a retail store, so we use the sales invoice frequently and this is becoming quite a nuisance.
 
I am running xampp on windows XP with Apache 2.2.21 and PHP 5.3.8

Thank you for any help,
 -Joshua
 </code></pre></div><p>We have reproduced this error in Windows 7 with Apache 2.2.8 and PHP 5.2.6.</p><p>There are problems in Windows OS with session handling and we are not able to localize the problem in the code.</p><p>The check is done in /sales/includes/sales_ui.inc, <strong>function check_edit_conflicts($cartname=&#039;Items&#039;)</strong>.</p><p>If this is a problem for you and you are sure that sales documents are never entered by more than one FA user at <br />the same time, you can eliminate this check by setting the variable <strong>$no_check_edit_conflicts=1</strong> in config.php.<br />This is coming in release 2.3.13 that is about to ship.</p><p>We are working on this issue and if anybody can contribute with valuable information regarding this, you are <br />most welcome.</p><p>We want to solve this problem as soon as possible.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Thu, 15 Nov 2012 22:54:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14273#p14273</guid>
		</item>
	</channel>
</rss>
