|
Comments for: ying20000602
| Message # 1510822: |
|
Date: 11/12/08 04:02
By: danjo Subject: Session and headers problems I have a code that has a start session fuction which is referencing a header location in another file . but it is giving me this errors Cannot modify header information - headers already sent by (output started at C:\wamp\www\valentine\shop\access_admin.php:7) in C:\wamp\www\valentine\shop\access_admin.php on line 59 The access_admin.php file is : <?php ini_set("display_errors", "1"); //admin mode access file include("./cfg/connect.inc.php"); if (isset($_POST["authorize"])) { if (!strcmp(base64_encode($_POST["login"]), ADMIN_LOGIN) && !strcmp(md5($_POST["password"]), ADMIN_PASS)) { //login ok $_SESSION["log"] = ADMIN_LOGIN; $_SESSION["pass"] = ADMIN_PASS; //redirect to the admin interface header("Cache-control: private"); } else $errorStr = "Invalid login and/or password"; } ?> Please help... |
Previous Message | Next Message |


