Re: PHP - Basic Auth - Cpanel

From: Date: Thu, 08 Apr 2004 22:05:59 +0000
Subject: Re: PHP - Basic Auth - Cpanel
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182922@lists.php.net to get a copy of this message
Ryan A wrote:
Hi, A client is selling hosting from his site, and _his_ clients get their own control panel from CPanel, for the sake of understanding I will name my client A and his client(s) B. When B needs to log into his cpanel he basicially goes to his a url like this: http://hisSite.com/cpanel/ then the Basic Auth pop-up screen comes up, he enters his user/pass.... My client (A) has got a new damn template which has a "username" and "password" field in it, he wants me to make it so that whenever B enters his username and pass he gets logged into cpanel. My questions: How do I know where to send the data? (eg: which is the authenticating file?) Do I pass it as a GET or a POST or what? URL encode?
You need to tell the browser to use the log in credentials, this is done by redirecting the browser to http://username:password@domain.com/. However this does not work with IE with the latest security patch installed, I think. It forbids to set username and password in a url.

« previous php.general (#182922) next »