Atitit 安全登录退出管理法v3 tbb.docx
目录
3.2. 1.1. 身份分类 管理员 操作人员 普通用户 1 2
3.3. 1.2. 第十七条 票据的登记项目包括:种类,持有人姓名、使用次数、有效期、,签发日期、地点(ip+浏览器id),其他证件号码(登录账户,用户名,手机号码)等。 1 2
4. 系统常用票据法 cookie session token 3
被冻结的
- 第三章 使用和查验 5
- 登录票据法visa
Cookie法
Token法
Session法
<?php
//file C:\wamp\www\safeDept\tokenVisaMan.php
function setTokenVisa_cookie()
{
$secret_key = "abcdefgh";
$token_visa['uname用户名'] = $_GET['loginacc'];
// $token['Key4svrTickAnyTime'] = "Key4svrTickAnyTimeTb26";
$token_visa['issue no编码'] = "id"+date('Y-m-d H:i:s');
$token_visa['category种类type'] = $_GET['usertype'];
$token_visa['enter_before请于此前进入Util'] = date('Y-m-d H:i:s');
$token_visa['issue_date_time签发日期时间from'] = date('Y-m-d H:i:s');
$token_visa['fullname姓名'] = $_GET['loginacc'];
$token_visa['birth date出生日期'] = 1000;
$token_visa['entries次数'] = 1000;
$token_visa['duration of each stay hours after enter进入后可停留 '] = 24;
$token_visa['issue_at签发地'] = "token visa mang";
$token_visa['passport证件号码'] = $token_visa['uname用户名'];
$token_visa['remarks备注'] = "why trip 目的";
//from jpvisa exiry date =enter date+dura stay+cache time
$token_visa['datetime of expiry失效日期时间'] = date("Y-m-d G:H:s",strtotime("+0 days 24 hours 2 seconds"));
//us visa
$token_visa['ctrl num控制号'] = 1000;
//ukvisa shengen
$token_visa['VALID FOR area'] = 1000;
$token_visa['ip'] = 1000;
$token_visa['browser ua'] = 1000;
// $token_visa['createTime'] = date('Y-m-d H:i:s');
//$token['loginacc_utype'] = $_GET['usertype'];
// $token['loginacc'] = $_GET['loginacc'];
$token_json_str = json_encode($token_visa);
$token_ecr = openssl_encrypt($token_json_str, 'AES-128-ECB', $secret_key, 0, "");
setcookie("logincookie", $token_ecr, time() + 3600 * 24, "/");
print_r($token_json_str);
setcookie("loginacc", $_GET['loginacc'], time() + 3600 * 24, "/");
setcookie("loginacc_utype", $_GET['usertype'], time() + 3600 * 24, "/");
echo "ok";
}
如何阅读申根签证贴纸? -申根签证信息.html