Quick tips for https connection (Non secure content warning – IE)

If you are using https pages or some of the pages (payment pages etc) in your website, keep the following in your mind. In some browsers especially IE shows warning of non-secured content in secured page. This cause user the feeling that the website is not secured. Use relative url always. Relative URL means those [...]

1 Comments , , , , , , , , , , ,

HTTP authentication from PHP

Do you know you can implement http authentication using php code? HTTP authentications are those you see when  you open control panel or administrative backend website, prompting for username and password in html  authentication prompt. This can be done in php using following code: <?php if (!isset($_SERVER['PHP_AUTH_USER'])) { header(‘WWW-Authenticate: Basic realm=”My Realm”‘); header(‘HTTP/1.0 401 Unauthorized’); [...]

1 Comments , , , , , , , , , , ,