<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community</title>
		<link>http://www.daniweb.com/forums/</link>
		<description>Tech support, programming, web development, and internet marketing community. Forums to get free computer help and support.</description>
		<language>en-US</language>
		<lastBuildDate>Wed, 09 Dec 2009 07:20:33 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>Session not persisting</title>
			<link>http://www.daniweb.com/forums/thread229347.html</link>
			<pubDate>Sun, 11 Oct 2009 18:45:17 GMT</pubDate>
			<description><![CDATA[Hello, I know you probably get quite a few threads asking this, but the DaniWeb search didn't pull up what I was looking for. So here we go: 
 
I have a page that I've made as "private" by including my access control script at the top. The access control script starts a session, then checks to see...]]></description>
			<content:encoded><![CDATA[<div>Hello, I know you probably get quite a few threads asking this, but the DaniWeb search didn't pull up what I was looking for. So here we go:<br />
<br />
I have a page that I've made as &quot;private&quot; by including my access control script at the top. The access control script starts a session, then checks to see if a username and password were POSTed, and if not, if they are in $_SESSION. If all that fails, then it displays the log in page. If it gets results though, it validates them against my MySQL database of usernames + passwords. If that all goes to plan, then it allows the page which included it to finish loading.<br />
<br />
I can try to go to this &quot;private&quot; page, and the login page gets displayed instead, so I enter my username and password, which is correct so it displays the &quot;private&quot; page. When I click a link that takes me to the other &quot;private&quot; page, it displays the login form first again, and THEN the other private page when I've rePOSTed my info.<br />
<br />
So obviously the problem I'm having is that my session data is not persisting (even though I assigned keys in $_SESSION after logging in). My php.ini file has a correct path to a temp folder to store the sessions in, and I can actually see the session file in that directory when I'm on the private page, yet it has 0 bytes of info in it.<br />
<br />
I'm using EasyPHP 5.3.0 on Windows to test this out. Any help is appreciated! Thanks!<br />
<br />
<br />
EDIT:<br />
I am such an idiot. This problem had been bugging me for a while and I finally realized the dumbest mistake I had made. There was a &quot;log out&quot; link on the page, and its href was  <pre style="margin:20px; line-height:13px">&quot;&lt;?php session_unset();?&gt;&quot;</pre>. I don't know how I ever thought that would execute <span style="font-style:italic">only</span> when that link was clicked... let the laughing commence I guess :P</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>shadwickman</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229347.html</guid>
		</item>
	</channel>
</rss>
