|
Im having a problem here and was wondering if somebody could help me.
Here is what I got:
<?php
session_start();
header("Cache-control: private");
header('Content-Type: text/html; charset=utf-8');
header('Set-Cookie: track=978268624934537');
if($_SESSION['cookieenable'] == 1){
$hostname = hhcaddictz.com;
setcookie("name", $_SESSION['username'], time()+36000, $hostname);
setcookie("pass", $_SESSION['password'], time()+36000, $hostname);
}
?>
^ This is in my index file, Im using include() for the other pages.
<?
if($checkbox){
$cookieenable = 1;
$_SESSION['cookieenable'] = $cookieenable;
}
?>
^ This is from my form and the remember me button is called checkbox.
It works but Its only doing the password, plus ive used $password = md5($password) then $_SESSION['password'] = $password.
Ive tried username alone, it seems as though my $username string as something wrong with it. Maybe somebody knows my problem...
Cheers in advance
Paul
Last edited by Phobz; 08-22-2004 at 07:05 PM..
|