Jump to content

stop duplicate entry


brown2005

Recommended Posts

Guest huey4657
Somewhere in the login script (usally when username and password have been validated) you need to set authentication
[code]$_SESSION['auth'] = "yes";[/code]

then the top of your pages goes something like this

[code] session_start();

/* Check to see if user is logged in,
    if not send to login page. */

if(@$_SESSION['auth'] != "yes")

  {

  header("Location: Login.php");

  exit();

  }[/code]
Link to comment
https://forums.phpfreaks.com/topic/17220-stop-duplicate-entry/#findComment-72981
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.