lumaxw3b / croogo_clearsession
Croogo CMS 2.x 版本的 ClearSession 插件。
dev-master
2015-05-19 10:21 UTC
Requires
- php: >=5.3.0
- composer/installers: *
- croogo/croogo: ~2.0
This package is not auto-updated.
Last update: 2024-09-28 18:00:00 UTC
README
Croogo CMS 的 ClearSession 插件,用于从数据库表中删除会话记录。
安装 ClearSession
此插件与特定的 CakePHP/Croogo 会话存储配置一起工作。在安装此插件之前,请更改 app/Config/croogo.php 中的会话配置。
Configure::write('Session', array( 'defaults' => 'database', // 'timeout' => 30, // The session will timeout after 30 minutes of inactivity // 'cookieTimeout' => 1440, // The session cookie will live for at most 24 hours, this does not effect session timeouts 'checkAgent' => false, // 'autoRegenerate' => true, // causes the session expiration time to reset on each page load 'ini' => array( 'session.cookie_secure' => false, 'session.cookie_httponly' => true ), ));
设置 Croogo 配置后,我们需要创建 cake_sessions 数据库表
CREATE TABLE `cake_sessions` ( `id` varchar(255) NOT NULL DEFAULT '', `data` text, `expires` int(11) DEFAULT NULL, PRIMARY KEY (`id`) );
安装 ClearSession 插件并点击一次即可从数据库表中删除所有选定的会话。
问题
请将您与插件相关的问题报告到 github 上的 问题跟踪器。
许可证
Asset Compress 在 MIT 许可证 下提供。
版权
2015 Lukas Marks (http://lumax-web.de/)
作者
请参阅 github 贡献者列表
变更日志
请参阅 CHANGELOG,了解仅在 master
上可用的更改。请参阅 github 发布,了解以前版本上的变更日志。