<?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 destroy warnings]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5953</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5953&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Session destroy warnings.]]></description>
		<lastBuildDate>Sat, 26 Sep 2015 17:50:30 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Session destroy warnings]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24358#p24358</link>
			<description><![CDATA[<p>@joe: Can pull it in from my <a href="https://github.com/apmuthu/frontaccounting/commit/844d76209b6b7316739357690b838c430f27ea6a">repo</a>.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 26 Sep 2015 17:50:30 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24358#p24358</guid>
		</item>
		<item>
			<title><![CDATA[Session destroy warnings]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24351#p24351</link>
			<description><![CDATA[<p>A look at <strong>tmp/error.log</strong> in FA (on XAMPP in Windows) will show:<br /></p><div class="codebox"><pre><code>0::logout.php:50: session_destroy() [&lt;a href=&#039;function.session-destroy&#039;&gt;function.session-destroy&lt;/a&gt;]: Session object destruction failed</code></pre></div><p>each time one logs out.</p><p>This is because <strong>session_destroy()</strong> is attempted after a <strong>session_unset()</strong> in <strong>access/logout.php</strong> - the &quot;@&quot; notwithstanding. If this is required for some installations, then the following can replace the last 2 statements in it:<br /></p><div class="codebox"><pre><code>session_unset();
if (session_id() != &#039;&#039;) session_destroy();</code></pre></div><p>For PHP 5.4+, use the following:<br /></p><div class="codebox"><pre><code>session_unset();
if (session_status() == PHP_SESSION_ACTIVE) session_destroy();</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 25 Sep 2015 22:02:54 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24351#p24351</guid>
		</item>
	</channel>
</rss>
