Jump to content

MySQL Login and Session Help


jbwebdesign

Recommended Posts

 

Welcome to Textmonster.org Promoters Section!

Here you will be able to administer everything that goes on in the textmonster world! We have tried to make it as easy as can be! You will be able to see your whole entire history on how many sales you have made and how much money you are being paid.

 

Recent Updates:

As of now we have not added any updates. if you have any comments, ideas or anything that can make our services better please do not hesitate to tell us!

 

We will do what we can to make our services excellent!

 

©  2009 All Rights Resereved Textmonster.org

 

Link to comment
Share on other sites

Haven't had the chance to go through whole of your script, but it looks like you're redirecting the user BEFORE the sessions are given value:

 

...
       if($result!=1){
           $err = "
invalid login info, please try again!";
       }
       else {

               header('Location:index.php');
           $_SESSION['user'] = $user;
           $_SESSION['pass'] = $pass;
           $_SESSION['result'] = $result;
       }
   }
...

 

 

The piece of code header('Location:index.php'); should be after $_SESSION() takes the Username and Password values :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...