[英]Keeping CodeIgniter session active
I have a CodeIgniter app and some plain PHP stuff on a domain eg I visit my CodeIgniter app at http://foo.com and plain php files at http://foo.com/plainphp/somefile.php 我有一个域比如我访问我的笨应用一个笨的应用程序和一些简单的PHP的东西http://foo.com和纯PHP文件在http://foo.com/plainphp/somefile.php
I want to keep the CI session active when I am working at somefile.php for a long period. 当我长时间在somefile.php中工作时,我想保持CI会话处于活动状态。 I kind of understand that something should ping the CI app regularly or even simpler method would be that this ping happens when I refresh somefile.php manually.
我有点理解,应该定期对CI应用程序执行ping操作,甚至更简单的方法是,当我手动刷新somefile.php时会执行ping操作。
My question is: 我的问题是:
set your session preferences setting in application/config/config.php
在
application/config/config.php
设置会话首选项设置
sess_expiration :The number of seconds you would like the session to last. sess_expiration:您希望会话持续的秒数。 The default value is 2 hours (7200 seconds).
默认值为2小时(7200秒)。 If you would like a non-expiring session set the value to zero: 0
如果您希望会话不过期,则将该值设置为零:0
see the documentation of codeigniter : session settings 请参阅codeigniter的文档: 会话设置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.