Form still shows despite PHP condition with session -


<?php if(!isset($_session['login']))  { ?>         <div id="login">              <form method="post" action="login.php">                 username: <input type="text" name="nm" /> <br />                 password: <input type="password" name="pass" /> <br />                 <input type="submit" name="go" value="login" />             </form>         </div>         <?php } else echo 'hi'; ?> 

even though session set (value test) shows form instead of 'hi'.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -