This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session variable problem

 
muntago Richard
Ranch Hand
Posts: 82
  • 0
  • 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: 188
Android Java PHP
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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