<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1042372" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1042372</link>
    <description></description>
    <language>en</language>
          <item>
    <title>you can try it yourself
set</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/php-session-management#comment-1235582</link>
    <description> &lt;p&gt;you can try it yourself&lt;br /&gt;
set data to a session, goto another page and see if the session isset and has data&lt;br /&gt;
then unset the session, turn off your cookies in the browser and try it again&lt;/p&gt;
&lt;p&gt;when you call &quot;session_start()&quot; (as i presume you are) php sets SID (session ID) and is default set in a cookie&lt;br /&gt;
It can be accessed by using that ID in URLS, but now we are getting into issues with SEO and security issues.&lt;/p&gt;
&lt;p&gt;also, have a read of this if you haven&#039;t already&lt;br /&gt;
&lt;a href=&quot;http://uk2.php.net/session&quot; title=&quot;http://uk2.php.net/session&quot;&gt;http://uk2.php.net/session&lt;/a&gt;&lt;br /&gt;
its technical rather than informative, but is worth reading through the functions you are using as it has some must read warnings&lt;br /&gt;
(i.e. &quot;Do NOT unset the whole $_SESSION with unset($_SESSION) as this will disable the registering of session variables through the $_SESSION superglobal.&quot;)&lt;/p&gt;
 </description>
     <pubDate>Wed, 26 Nov 2008 15:43:38 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1235582 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I did not know that - your</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/php-session-management#comment-1235576</link>
    <description> &lt;p&gt;I did not know that - your saying that any session set will also be set as a cookie by default?&lt;/p&gt;
&lt;p&gt;This must be a php setting then?&lt;/p&gt;
&lt;p&gt;Or i must unset and destroy all cookies with the same name.&lt;/p&gt;
 </description>
     <pubDate>Wed, 26 Nov 2008 11:27:38 +0000</pubDate>
 <dc:creator>benf</dc:creator>
 <guid isPermaLink="false">comment 1235576 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Remember $_SESSION uses</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/php-session-management#comment-1235558</link>
    <description> &lt;p&gt;Remember $_SESSION uses COOKIES by default, so it might be a case that the session is being set to a cookie in your browser/pc and not being deleted&lt;/p&gt;
 </description>
     <pubDate>Wed, 26 Nov 2008 03:33:16 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1235558 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Yes and also, i have now</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/php-session-management#comment-1235515</link>
    <description> &lt;p&gt;Yes and also, i have now transfered my preject to a test directory on my server. Rahter than expecting no user to be logged in there is a user logged in.&lt;/p&gt;
&lt;p&gt;It seems my session management is not quite right.&lt;/p&gt;
&lt;p&gt;My authentication stores the session variable generated after login in the database, then i have a auth function that checks the session in the database against the session variable.&lt;/p&gt;
&lt;p&gt;I thought the session expires after 20 mins by default?&lt;/p&gt;
&lt;p&gt;Why would i still be logged in after a few days and after transfering my site over to a different server.&lt;/p&gt;
 </description>
     <pubDate>Tue, 25 Nov 2008 12:54:40 +0000</pubDate>
 <dc:creator>benf</dc:creator>
 <guid isPermaLink="false">comment 1235515 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>You probably should give the</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/php-session-management#comment-1235496</link>
    <description> &lt;p&gt;You probably should give the SESSION a duration.&lt;/p&gt;
&lt;p&gt;Usually I let Drupal handle this, there is an autologout module, not sure how it works.&lt;/p&gt;
&lt;p&gt;You could set a database timestamp, or perhaps a SESSION variable, and renew it with activity, or kill the session after a specified elapsed time...&lt;/p&gt;
&lt;p&gt;Check out these &lt;a href=&quot;http://letmegooglethatforyou.com/?q=expire+php+session+automatically&quot;&gt;search results&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 Nov 2008 21:21:38 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1235496 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
