• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

authentication basic

  1. Kepala Suku

    [Solved] HTTP Authentication Basic Using Codeigniter And MySql

    Here is what i done when need http authentication basic on Codeigniter using MySql as database. function auth() { $authorized = false; $username = isset($_SERVER['PHP_AUTH_USER'])?$_SERVER['PHP_AUTH_USER']:''; $password = isset($_SERVER['PHP_AUTH_PW'])?$_SERVER['PHP_AUTH_PW']:''...
  2. Kepala Suku

    [Solved] HTTP Authentication Basic Using PHP

    Here is a function for creating HTTP Authentication Using PHP function require_auth() { $AUTH_USER = 'your_user'; $AUTH_PASS = 'your_password'; header('Cache-Control: no-cache, must-revalidate, max-age=0'); $has_supplied_credentials = !(empty($_SERVER['PHP_AUTH_USER']) &&...