Hello,
Am I right to assume that you don’t need to start a session with session_start() when using $_SERVER[‘PHP_AUTH_USER’] and $_SERVER[‘PHP_AUTH_PW’] to authenticate a users for a login area on multiple pages? Or do you need sessions for this?
Hello,
Am I right to assume that you don’t need to start a session with session_start() when using $_SERVER[‘PHP_AUTH_USER’] and $_SERVER[‘PHP_AUTH_PW’] to authenticate a users for a login area on multiple pages? Or do you need sessions for this?
You don’t need to start a session. Also keep in mind that this variables will not work if you are using PHP in CGI mode.