Thread: SSL and PHP
View Single Post
Old 11-05-2009, 11:12 AM   #9 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 841
DJMaze is on a distinguished road
To improve accessibility you could the reduce the "error trigger".
Use session handling on index.php.

PHP Code:
<?php

session_start
();

if (
'POST' === $_SERVER['REQUEST_METHOD']) {
    if (!isset(
$_SESSION['allow_post'])) {
        exit(
'Please allow cookies!');
    }
}

$_SESSION['allow_post'] = true;
?>
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote