Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session variable problem

 
muntago Richard
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This code does not display a simple.php page if correct account were entered. i think there is a session login problem






 
ibrahim yener
Ranch Hand
Posts: 202
Android Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no session problem. Simply you are not assigning value to Session variables.

Look at your code



should be
 
shivdhwaj pandey
Ranch Hand
Posts: 67
Java PHP Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are creating session but not assigning the value to session variable that`s the problem.
And place exit; just after the header();
 
Anindya Roy
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mysql_* functions have been deprecated instead please use mysqli_* or PDO

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic