Hi.
On my site i wish to make a admin section, and therefore i have made a login system, i wish to make it only with sessions so no cookies.
My problem is that, when i login the session is made, but when i go to my chech_auth.php i get redirected to no_access.php. My code is below, isent that code right??
chech_auth.php
<?php
if (!isset($HTTP_SESSION_VARS['adgang']))
{
require('no_access.php');
exit;
}
?>
login.php
<?php
session_start();
?>
<head>
.....
else if(($PHP_AUTH_USER=="$user") && ($PHP_AUTH_PW=="$pass"))
{
session_register("adgang");
.....
Im running php 4.0 on WinXP using Apache
Hope anyone can see what is wrong, because i cant see what it should be.
Regards Ryan