Jump to content

What's wrong with my sessions?


Moron

Recommended Posts

This was working before I had to make some query changes.

 

In the query:

 

WHERE M2.[EMPNO] = '".$_POST['empcode']."' and 
M2.[Last4SSN] = '".$_POST['password']."'

 

They log in with their employee number and last of of the SSN.

 

So far, so good.

 

Then they hit a sub-page. All is well. When they click a link to go back, it doesn't accept their username or password (or both).

 

Each page has the following at the top:

 

session_start();
if(isset($_POST['password'])) {$_SESSION['password'] = $_POST['password'];}
if(isset($_POST['empcode'])) {$_SESSION['empcode'] = $_POST['empcode'];}

 

I don't know what's causing this, but it was working until I changed the WHERE statement this morning.

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.