Any help would be most appreciated.
Thanks.
IE 6 doesn't seem to handle php session variables too well, there are
various alledged causes and solutions. See user comments at
http://es2.php.net/session and
http://es2.php.net/function.session-start
For my own dev site, the problem turned out to be that I had an
underscore in the url (as I had appended "_dev" to the domain) and this
prevented IE from setting the cookie to store the session ID.
Hope you find a solution,
AD7six
<?php
session_start();
header('P3P: CP="CAO PSA OUR"');
require 'db.php';
if ($_POST['login']) {
$admin = qr("select * from ".$pre."admin");
$x = strcmp(md5($_POST['password']), $admin['password']);
if (!$x) {
$_SESSION['verify'] = md5($admin['password']);
session_write_close();
header("Location: admin.php?t=".time());
exit();
}
}
?>
The P3P header was suggested by someone on php.net so I added it.