<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1040351" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1040351</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Hi guys, this post is very</title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-login-status-display#comment-1275320</link>
    <description> &lt;p&gt;Hi guys, this post is very old. I am lightyears from this now &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; Feel free to stay open for others needing help on this subject, but I myself don&#039;t require it anymore.&lt;/p&gt;
&lt;p&gt;Just a note.&lt;/p&gt;
 </description>
     <pubDate>Thu, 10 May 2012 11:43:24 +0000</pubDate>
 <dc:creator>DarkLight</dc:creator>
 <guid isPermaLink="false">comment 1275320 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>You can tell the server to</title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-login-status-display#comment-1275294</link>
    <description> &lt;p&gt;You can tell the server to automatically start the session for every PHP call by setting &lt;/p&gt;
&lt;p&gt;session.auto_start  =  1&lt;br /&gt;
(you can try putting this in a php.ini file in the root of your site, or look up how to set PHP settings via .htaccess)&lt;/p&gt;
&lt;p&gt;I prefer just having all scripts for a site calling a global configuration file that calls session_start() at the top of it.&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Thu, 10 May 2012 07:34:07 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1275294 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I know this is an old post</title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-login-status-display#comment-1274984</link>
    <description> &lt;p&gt;I know this is an old post but can I ask a question?  Do we really have to have&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;session_start&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;on all our page to have it working and if we need to have it on only one page, where do we place it?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
 </description>
     <pubDate>Tue, 24 Apr 2012 10:49:19 +0000</pubDate>
 <dc:creator>gtuges</dc:creator>
 <guid isPermaLink="false">comment 1274984 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-login-status-display#comment-1227261</link>
    <description> &lt;p&gt;nm. i should have notice, i was trying to force a cookie into the script, but then stopped, and thought, why the hell do i need a cookie for something this small. i just use sessions. i never actually DIRECTLY write cookies on here with &quot;setcookie&quot;.&lt;br /&gt;
anyway, thanks for your help. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Dec 2007 22:35:35 +0000</pubDate>
 <dc:creator>Reece S</dc:creator>
 <guid isPermaLink="false">comment 1227261 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-login-status-display#comment-1227260</link>
    <description> &lt;p&gt;Oops, forgot about that.  I always have that in a header php file in my day-to-day coding so I forget that it&#039;s needed.&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Dec 2007 22:29:27 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1227260 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-login-status-display#comment-1227259</link>
    <description> &lt;p&gt;AHHAH!!!&lt;br /&gt;
I sorted it.&lt;br /&gt;
all i did was add...&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;session_start&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
to every page i wanted the code to work on, it simply reminds the browser that it has a session in progress. thanks for your help. Very much appreciated your help &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Dec 2007 22:27:24 +0000</pubDate>
 <dc:creator>Reece S</dc:creator>
 <guid isPermaLink="false">comment 1227259 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-login-status-display#comment-1227227</link>
    <description> &lt;p&gt;First thing is that I can&#039;t stress enough how important it is to &lt;a href=&quot;http://us2.php.net/manual/en/function.mysql-real-escape-string.php&quot; class=&quot;bb-url&quot;&gt;escape your user inputs&lt;/a&gt;.  You will leave your site vulnerable to SQL injection otherwise.&lt;/p&gt;
&lt;p&gt;I think the main problem you were having is you forgot to &lt;a href=&quot;http://us2.php.net/manual/en/function.mysql-fetch-assoc.php&quot; class=&quot;bb-url&quot;&gt;fetch your row&lt;/a&gt;.  I added that in and changed your session assignment.  See the code below as I made some other comments (comments in /*  */).&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;localhost\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=\&quot;USERNAME\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=\&quot;PASSWORD\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db_name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=\&quot;DATABASE\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tbl_name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=\&quot;TABLE\&quot;;&lt;br /&gt;&lt;br /&gt;// Connect to server and select databse.&lt;br /&gt;/* variables do not need to be in quotes */&lt;br /&gt;mysql_connect(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)or die(\&quot;cannot connect\&quot;);&lt;br /&gt;mysql_select_db(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db_name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)or die(\&quot;cannot select DB\&quot;);&lt;br /&gt;&lt;br /&gt;// username and password sent from signup form&lt;br /&gt;/* always escape strings that are going from a user input to a SQL query */&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_real_escape_string(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;username&#039;]);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_real_escape_string(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;password&#039;]);&lt;br /&gt;&lt;br /&gt;/* added &#039;LIMIT 1&#039; - we know that there is only one result, but adding the limit tells MySQL to stop looking after it finds one */&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=\&quot;SELECT * FROM &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tbl_name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; WHERE username=&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039; and password=&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039; LIMIT 1\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=mysql_query(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;// Mysql_num_row is counting table row&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$count&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=mysql_num_rows(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;// If result matched &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$myusername&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; and &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mypassword&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, table row must be 1 row&lt;br /&gt;&lt;br /&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$count&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;==1){&lt;br /&gt;// Register &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$myusername&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mypassword&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; and redirect to file \&quot;login_success.php\&quot;&lt;br /&gt;/* forgot to fetch the row */&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_fetch_assoc(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;/* Use of session_register() is deprecated */&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;username&#039;] = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;username&#039;]; /* &#039;username&#039; should be the field in the DB that contains the user name */&lt;br /&gt;&lt;br /&gt;header(&#039;location:http://pcgenius.pcriot.com/members/basic/login/login_success.php&#039;);&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;header(&#039;location:http://pcgenius.pcriot.com/members/basic/login/login_failed.php&#039;);&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Dec 2007 03:43:54 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1227227 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-login-status-display#comment-1227215</link>
    <description> &lt;p&gt;I cannot seem to get it to work, here is my &quot;checklogin.php&quot; script...&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;localhost\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=\&quot;USERNAME\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=\&quot;PASSWORD\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db_name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=\&quot;DATABASE\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tbl_name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=\&quot;TABLE\&quot;;&lt;br /&gt;&lt;br /&gt;// Connect to server and select databse.&lt;br /&gt;mysql_connect(\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;, \&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;, \&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;)or die(\&quot;cannot connect\&quot;);&lt;br /&gt;mysql_select_db(\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db_name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;)or die(\&quot;cannot select DB\&quot;);&lt;br /&gt;&lt;br /&gt;// username and password sent from signup form&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;username&#039;];&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;password&#039;];&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=\&quot;SELECT * FROM &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tbl_name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; WHERE username=&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$username&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039; and password=&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$password&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=mysql_query(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;// Mysql_num_row is counting table row&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$count&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=mysql_num_rows(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;// If result matched &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$myusername&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; and &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mypassword&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, table row must be 1 row&lt;br /&gt;&lt;br /&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$count&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;==1){&lt;br /&gt;// Register &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$myusername&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mypassword&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; and redirect to file \&quot;login_success.php\&quot;&lt;br /&gt;session_register(\&quot;username\&quot;);&lt;br /&gt;session_register(\&quot;password\&quot;);&lt;br /&gt;header(&#039;location:http://pcgenius.pcriot.com/members/basic/login/login_success.php&#039;);&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;header(&#039;location:http://pcgenius.pcriot.com/members/basic/login/login_failed.php&#039;);&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;What would I need to do to display the content of the created cookie on a different page?&lt;br /&gt;
Thanks you so much in advance, i am fed up of this now, i cannot seem to get the right script.&lt;/p&gt;
 </description>
     <pubDate>Tue, 11 Dec 2007 20:41:56 +0000</pubDate>
 <dc:creator>Reece S</dc:creator>
 <guid isPermaLink="false">comment 1227215 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-login-status-display#comment-1227202</link>
    <description> &lt;p&gt;On my sites, if a user signs in, I place their profile in $_SESSION[&#039;profile&#039;].  Then, I use something like this:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (isset(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;profile&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;You are signed in as &#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;profile&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;user&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;a href=\&quot;login.php\&quot;&amp;gt;Sign In&amp;lt;/a&amp;gt;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 11 Dec 2007 16:50:38 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1227202 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-login-status-display#comment-1227198</link>
    <description> &lt;p&gt;thank you, i will take a look now. i have just found a script, but it does not look too stable.&lt;br /&gt;
thanks for your help.&lt;/p&gt;
 </description>
     <pubDate>Tue, 11 Dec 2007 16:04:16 +0000</pubDate>
 <dc:creator>Reece S</dc:creator>
 <guid isPermaLink="false">comment 1227198 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
