discuz前台用cookie,后台用session

解决方案 »

  1.   

    if (用户登录A系统){
    读取用户资料,username,password
    if (论坛用户表无该用户){
    插入用户到论坛用户表
    echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" nocache>";
    echo "<meta HTTP-EQUIV=\"REFRESH\" CONTENT=0;URL=logging.php?action=login&loginsubmit=\"会员登录\"&username=用户名&password=密码>";
    echo "<font size=1 face=verdana>Loading......</font>";
    exit;
    }else{
    echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" nocache>";
    echo "<meta HTTP-EQUIV=\"REFRESH\" CONTENT=0;URL=logging.php?action=login&loginsubmit=\"会员登录\"&username=用户名&password=密码>";
    echo "<font size=1 face=verdana>Loading......</font>";
    exit;
    }
    else{
    echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" nocache>";
    echo "<meta HTTP-EQUIV=\"REFRESH\" CONTENT=0;URL=index.php>";
    echo "<font size=1 face=verdana>Loading......</font>";
    exit;
    }给分啊~~