-
May 19th, 2015, 02:28 AM
#1
Thread Starter
New Member
How to reset $_SERVER variable ?
Hi,,
I've used protocol authentication on my web site, however I've got a retardant however do I reset that $_SERVER['PHP_AUTH_pw'];
Variable? thus it once more can enkindle authentication ?
-
May 19th, 2015, 08:43 AM
#2
Fanatic Member
Re: How to reset $_SERVER variable ?
I have never tried to make this kind of authentication myself... but isn't it the usual unset()?
like this?
Code:
if (isset($_SERVER['PHP_AUTH_PW'])) {
unset($_SERVER['PHP_AUTH_PW']);
}
alternatively, just set the value to null?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|