摘要: <?php namespace Lib; class Captcha{ private $width; private $height; public function __construct($width=80,$height=32) { $this->width=$width; $this->h 阅读全文
posted @ 2020-12-20 21:59 wing1377 阅读(119) 评论(0) 推荐(0) 编辑
摘要: <?php namespace Lib; class Session{ private $mypdo; public function __construct() { session_set_save_handler( [$this,'open'], [$this,'close'], [$this, 阅读全文
posted @ 2020-12-20 21:57 wing1377 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Session(会话) 原理 信息传输流程 第一次访问,服务器给客户端分配一个空间 每个空间都有一个唯一的编号,比如A11 将编号A11放到响应头,带回到客户端,保存在cookie中 客户端下次访问只能访问带有唯一编号的服务器Session会话空间 概念 Session是服务器端的技术 Sessio 阅读全文
posted @ 2020-12-20 18:44 wing1377 阅读(178) 评论(0) 推荐(0) 编辑