hey Spookster :D
first of all, you need to add some stuff for your code. if you want to specify the expiration time for a cookie you need to invoke the setcookie() function with more params...
bool setcookie ( string name [, string value [, int expire [, string path [, string domain [, bool secure]]]]])
that's how php.net has it... look at your code and go to the lines where you have setcookie() called 4 times, this is how i would do it:
global $HTTP_COOKIE_VARS;
$expire = time() + 3600; //expires within next hour
setcookie ("C_User", $Login[Username],$expire,"/","",0);
$HTTP_COOKIE_VARS["C_User"] = $Login[Username];
setcookie ("C_Pass", "$Login[Password]",$expire,"/","",0);
$HTTP_COOKIE_VARS["C_Pass"] = $Login[Password];
setcookie ("C_UserType", "$UserType",$expire,"/","",0);
$HTTP_COOKIE["C_UserType"] = $UserType;
setcookie ("C_LoggedIn", "True",$expire,"/","",0);
$HTTP_COOKIE["C_LoggedIn"] = "True";
make sure that you don't use $_COOKIE, it seems that there's no difference between $HTTP_COOKIE_VARS, but for some reason $_COOKIE is messy, and if you use $HTTP_COOKIE_VARS array make sure you call the header('location: whatever.php');
you have to declare that $HTTP_COOKIE_VARS is global like in the example above and you MUST call header() after all cookies are set....
hope that helped you
www.campusgrind.com the college portal