View Single Post
Old 07-05-2011, 12:46 PM  
Jey p
Confirmed User
 
Jey p's Avatar
 
Industry Role:
Join Date: Apr 2002
Location: ARGENTINA
Posts: 1,810
Quote:
Originally Posted by 1080p Content View Post
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
Jey p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote