<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Session destroy warnings]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5953&amp;type=atom" />
	<updated>2015-09-26T17:50:30Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5953</id>
		<entry>
			<title type="html"><![CDATA[Re: Session destroy warnings]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24358#p24358" />
			<content type="html"><![CDATA[<p>@joe: Can pull it in from my <a href="https://github.com/apmuthu/frontaccounting/commit/844d76209b6b7316739357690b838c430f27ea6a">repo</a>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-09-26T17:50:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24358#p24358</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Session destroy warnings]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24351#p24351" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-09-25T22:02:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24351#p24351</id>
		</entry>
</feed>
