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
https://forums.phpfreaks.com/topic/100302-whats-wrong-with-my-sessions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.