<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comentários em: Increased Security With MySQL Based Web Sessions</title>
	<atom:link href="http://iceburn.info/php/increased-security-with-mysql-based-web-sessions.html/feed" rel="self" type="application/rss+xml" />
	<link>http://iceburn.info/php/increased-security-with-mysql-based-web-sessions.html</link>
	<description>Tutoriais &#38; Trechos de Código PHP, MySQL, Apache...</description>
	<lastBuildDate>Wed, 03 Mar 2010 13:27:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Por: WGR Studio</title>
		<link>http://iceburn.info/php/increased-security-with-mysql-based-web-sessions.html/comment-page-1#comment-459</link>
		<dc:creator>WGR Studio</dc:creator>
		<pubDate>Fri, 03 Jul 2009 21:32:15 +0000</pubDate>
		<guid isPermaLink="false">http://iceburn.info/?p=159#comment-459</guid>
		<description>Waw.. I find this old post with no answer... 

Yes has work.. But i musted changed some methods and variables.. If not all it&#039;s OK .. Thanks</description>
		<content:encoded><![CDATA[<p>Waw.. I find this old post with no answer&#8230; </p>
<p>Yes has work.. But i musted changed some methods and variables.. If not all it&#8217;s OK .. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: =IceBurn=</title>
		<link>http://iceburn.info/php/increased-security-with-mysql-based-web-sessions.html/comment-page-1#comment-7</link>
		<dc:creator>=IceBurn=</dc:creator>
		<pubDate>Tue, 21 Oct 2008 09:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://iceburn.info/?p=159#comment-7</guid>
		<description>Hi WGR!

session_destroy() and session_start() need to be called from inside the built in class respective functions. 
This is a workaround, because the class has the ability to regenerate on every request.

All other PHP&#039;s built in functions you can use normally, like session_name(), session_id() and so on...

Here is an example:
&lt;pre lang=&quot;php&quot;&gt;
&lt;?php

$session = new MySessions();

$session-&gt;session_start(); // Start the session with the class built in function

$session-&gt;destroy(session_id()); // Correctly destroy the session 
?&gt;

&lt;/pre&gt;

Both must be set before any output to the browser.

Let me know if it worked for you. Thanks.</description>
		<content:encoded><![CDATA[<p>Hi WGR!</p>
<p>session_destroy() and session_start() need to be called from inside the built in class respective functions.<br />
This is a workaround, because the class has the ability to regenerate on every request.</p>
<p>All other PHP&#8217;s built in functions you can use normally, like session_name(), session_id() and so on&#8230;</p>
<p>Here is an example:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000088;">$session</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> MySessions<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$session</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">session_start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Start the session with the class built in function</span>
&nbsp;
<span style="color: #000088;">$session</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">destroy</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">session_id</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Correctly destroy the session </span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Both must be set before any output to the browser.</p>
<p>Let me know if it worked for you. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: WGR Studio</title>
		<link>http://iceburn.info/php/increased-security-with-mysql-based-web-sessions.html/comment-page-1#comment-6</link>
		<dc:creator>WGR Studio</dc:creator>
		<pubDate>Tue, 21 Oct 2008 09:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://iceburn.info/?p=159#comment-6</guid>
		<description>hy ... 
i use your class but here i have a problem with this function ... 

&lt;&lt;session_name])) {
.........


and i can&#039;t distroy my sessions with &quot;session_destroy();&quot; i&#039;m forced to use $sessions-&gt;destroy(); .... 

in this case $this is not a objet 

so please report this bug and present one isue .. thanke you .. nice and keep up</description>
		<content:encoded><![CDATA[<p>hy &#8230;<br />
i use your class but here i have a problem with this function &#8230; </p>
<p>&lt;&lt;session_name])) {<br />
&#8230;&#8230;&#8230;</p>
<p>and i can&#8217;t distroy my sessions with &#8220;session_destroy();&#8221; i&#8217;m forced to use $sessions-&gt;destroy(); &#8230;. </p>
<p>in this case $this is not a objet </p>
<p>so please report this bug and present one isue .. thanke you .. nice and keep up</p>
]]></content:encoded>
	</item>
</channel>
</rss>
