how to hidden and replace html block with session?
<p>If user press (sign in) to my site. (login block) will be hidden  and replace with (sign out block) </p>

<p>i know this will made with session but i cant do it  so i need some help.....</p>

<pre><code>                                     &lt;div class="sidebar"&gt;

&lt;!-- ---------------------------------------------------------------------------------------- --&gt;
                               &lt;!-- Begin Sign in block  --&gt;


         &lt;div class="art-Block"&gt;
                            &lt;div class="art-Block-tl"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-tr"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-bl"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-br"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-tc"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-bc"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-cl"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-cr"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-cc"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-body"&gt;
                                           &lt;div class="art-BlockHeader"&gt;
                                            &lt;div class="l"&gt;&lt;/div&gt;
                                            &lt;div class="r"&gt;&lt;/div&gt;
                                            &lt;div class="art-header-tag-icon"&gt;
                                             &lt;div class="t"&gt;Sign in&lt;/div&gt;
                                             &lt;/div&gt;
                                             &lt;/div&gt;&lt;div class="art-BlockContent"&gt;
                                             &lt;div class="art-BlockContent-body"&gt;





  &lt;form action="login.php" method="post" &gt;
  &lt;table width="171" border="0" &gt;
  &lt;tr&gt;
    &lt;td width="97"&gt;
    &lt;input class="put" name="uname"  type="text" size="10" /&gt;    &lt;/td&gt;
    &lt;td width="64" align="right" class="text_un"&gt;User Name&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;
    &lt;input  type="password" size="10" name="password" /&gt;&lt;/td&gt;
    &lt;td align="right" class="text_pw"&gt;Pass Word&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&amp;nbsp;&lt;/td&gt;
    &lt;td align="right" valign="top"&gt;&lt;input class="button" type="submit" name="button" id="button" value="Sign in " /&gt;&lt;/td&gt;
  &lt;/tr&gt;

  &lt;/table&gt;
  &lt;/form&gt;




                                  &lt;/div&gt;
                                  &lt;/div&gt;
                                  &lt;/div&gt;
                                  &lt;/div&gt;


                            &lt;!-- End Sign in block --&gt;

&lt;!-- ---------------------------------------------------------------------------------------- --&gt;


                           &lt;!-- Begin Sign Out Block  --&gt;

         &lt;div class="art-Block"&gt;
                            &lt;div class="art-Block-tl"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-tr"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-bl"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-br"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-tc"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-bc"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-cl"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-cr"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-cc"&gt;&lt;/div&gt;
                            &lt;div class="art-Block-body"&gt;
                                           &lt;div class="art-BlockHeader"&gt;
                                            &lt;div class="l"&gt;&lt;/div&gt;
                                            &lt;div class="r"&gt;&lt;/div&gt;
                                            &lt;div class="art-header-tag-icon"&gt;
                                             &lt;div class="t"&gt;Sign out &lt;/div&gt;
                                             &lt;/div&gt;
                                             &lt;/div&gt;&lt;div class="art-BlockContent"&gt;
                                             &lt;div class="art-BlockContent-body"&gt;





  &lt;form action="login.php" method="post" &gt;
  &lt;table width="171" border="0" &gt;

  &lt;tr&gt;
    &lt;td&gt;&amp;nbsp;&lt;/td&gt;
    &lt;td align="right" valign="top"&gt;&lt;input class="button" type="submit" name="button" id="button" value="Sign Out " /&gt;&lt;/td&gt;
  &lt;/tr&gt;

  &lt;/table&gt;
  &lt;/form&gt;





                                  &lt;/div&gt;
                                  &lt;/div&gt;
                                  &lt;/div&gt;
                                  &lt;/div&gt;

                            &lt;!-- End Sign Out Block  --&gt;

                                  &lt;/div&gt;
                                  &lt;/div&gt;
</code></pre>
