07-05-2011, 12:46 PM
|
|
Confirmed User
Industry Role:
Join Date: Apr 2002
Location: ARGENTINA
Posts: 1,810
|
Quote:
Originally Posted by 1080p Content
In a very basic way:
Code:
<?php
$username = isset($_SERVER['PHP_AUTH_USER']) ? $_SERVER['PHP_AUTH_USER'] : ( isset($_SERVER['REMOTE_USER']) ? $_SERVER['REMOTE_USER'] : '');
if (!empty($username)) {
header ("Set-Cookie: ccbilluser=$username; expires=Friday, 16-Jan-2037 00:00:00 GMT; path=/");
}
?>
|
there you go 
__________________
Premium Web Design
|
|
|