Cookie的结果不一致

时间:2016-04-01 11:42:27

标签: php cookies

如果我多次按F5键(刷新),结果有时会有所不同,比如结果不一致,我只想要一个修复结果。直到现在我一直在寻找问题的解决但我仍然失败了,我不知道错误在哪里。

结果如下:

enter image description here

index.php图片: enter image description here

的index.php:

<?php   
    include('c2gcon.php');
    include('logincheckmember.php');
    include('logincheckadmin.php');
    //include('urlmanage.php');

    //include('urlexplode.php');
    $urlget = $_GET['url'];
    $urlexplode = filter_var($urlget, FILTER_SANITIZE_STRING);
    $url = explode("/", $urlexplode);

    $urlsave=$url[0];
    //print_r($url);
    echo "urlsave=$urlsave<br>";
    if($urlsave=='home'){
        include('uc.php');
        include('coorand1.php');
        include('home.php');
    }else{
        echo "<script language=javascript> alert('gila lu')</script>"; 
        echo "<br><br><br>gila lu keong<br>";
        include('uc.php');
        include('coorand2.php');
        include('home.php');
    }
?>

REFFERENCE: coorand1.phpcoorand2.php

0 个答案:

没有答案