<?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]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7370</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7370&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Session error.]]></description>
		<lastBuildDate>Thu, 25 Oct 2018 21:58:33 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Session error]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33045#p33045</link>
			<description><![CDATA[<p>This solution works fine!</p>]]></description>
			<author><![CDATA[null@example.com (cleal)]]></author>
			<pubDate>Thu, 25 Oct 2018 21:58:33 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33045#p33045</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session error]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33041#p33041</link>
			<description><![CDATA[<p>This is still an issue ref <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=33040#p33040"> here</a></p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Thu, 25 Oct 2018 21:24:48 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33041#p33041</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session error]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31364#p31364</link>
			<description><![CDATA[<p>Thanks for reporting. This will be fixed asap.</p><p>Currently there are problems committing to Sourceforge Git, but as soon as it is working again, it will be committed.</p><p>/Joe</p><p><a href="https://github.com/FrontAccountingERP/FA/commit/67b2242ddabe3734f4e923b45e172adcb1e11831">Committed</a>.</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 09 Apr 2018 08:21:57 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31364#p31364</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session error]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31358#p31358</link>
			<description><![CDATA[<p>I&#039;m getting the same message (warning?) with code version 2.4.4 (de943e150d36f815a02d4996e532a5e4e7510bc8) and PHP 7.2.3 (XAMPP 2018-03-14) with debugging on.</p><p>This message seems to be related to trying to change the ini setting after the session has started, which was being silently ignored in earlier versions of PHP but is now being reported. Refer https://stackoverflow.com/questions/48209844/ini-set-fails-to-set-session-variables-php-7-2-0-and-higher</p><p>I propose that the ini_set be moved before the new SessionManager() [as follows]</p><p>-------------------------------------------------------<br /> includes/session.inc | 5 ++++-<br /> 1 file changed, 4 insertions(+), 1 deletion(-)</p><p>diff --git a/includes/session.inc b/includes/session.inc<br />index 3f8c525d..779dc4e6 100644<br />--- a/includes/session.inc<br />+++ b/includes/session.inc<br />@@ -394,6 +394,9 @@ function login_timeout()<br /> &nbsp; &nbsp; if (file_exists($path_to_root.&#039;/&#039;.$ext[&#039;path&#039;].&#039;/hooks.php&#039;))<br /> &nbsp; &nbsp; &nbsp; &nbsp; include_once($path_to_root.&#039;/&#039;.$ext[&#039;path&#039;].&#039;/hooks.php&#039;);<br /> }<br />+<br />+ini_set(&#039;session.gc_maxlifetime&#039;, 36000); // 10hrs<br />+<br /> $Session_manager = new SessionManager();<br /> $Session_manager-&gt;sessionStart(&#039;FA&#039;.md5(dirname(__FILE__)));</p><p>@@ -429,7 +432,7 @@ function login_timeout()<br /> */<br /> // ini_set(&#039;session.save_path&#039;, VARLIB_PATH.&#039;/&#039;);</p><p>-ini_set(&#039;session.gc_maxlifetime&#039;, 36000); // 10hrs<br />+// ini_set(&#039;session.gc_maxlifetime&#039;, 36000); // 10hrs</p><p> hook_session_start(@$_POST[&quot;company_login_name&quot;]);<br /> -------------------------------------------------------</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (PaulShipley)]]></author>
			<pubDate>Mon, 09 Apr 2018 06:06:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31358#p31358</guid>
		</item>
		<item>
			<title><![CDATA[Re: Session error]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30972#p30972</link>
			<description><![CDATA[<p>There were some changes to this file <strong>includes/session.inc</strong> in Nov/Dec 2017 that fixed some session errors as well. Using the Git Master and appropriately adjusting the <strong>config.php</strong> based on the latest <strong>config.default.inc</strong> will fix the issue. Additional entries in the sys_prefs table may also be in order - compare with latest <strong>sql/en_US-new.sql</strong>.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 02 Mar 2018 11:34:51 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30972#p30972</guid>
		</item>
		<item>
			<title><![CDATA[Session error]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30970#p30970</link>
			<description><![CDATA[<p>Hello, I got this error:</p><p>ini_set(): A session is active. You cannot change the session module&#039;s ini settings at this time in file: /var/www/vhosts/frefelweb.ch/fa-dev2.frefelweb.ch/includes/session.inc at line 430</p><p>What does it means?</p>]]></description>
			<author><![CDATA[null@example.com (barbarian)]]></author>
			<pubDate>Fri, 02 Mar 2018 11:21:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30970#p30970</guid>
		</item>
	</channel>
</rss>
