您的会话过期. [英] your Session Expire.

查看:80
本文介绍了您的会话过期.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何限制用户的页面,老师必须在一个月内输入纸质标记.如果他不能在一个月内输入标记,则输入标记的会话应该过期.

How Can I restrict the page for users like,teacher must enter the paper marks in one month. If he couldn''t enter the marks in one month then the session of entering marks should expire.

推荐答案

与会话无关-会话不应维护了二十多分钟,一个月就更少了! (要维持会话,用户必须将其浏览器窗口保持打开状态一个月-如果关闭该窗口,则在他重新连接时将建立一个新的会话).

相反,请查看Cookie-您可以在编写Cookie时为其设置失效日期.
This is nothing to do with Sessions - sessions should not be maintained for more than twenty minutes, much less a month! (And to maintain a session, the user would have to keep his browser window open for a month - if it is closed a new session will be established when he re-connects).

Instead, look at Cookies - you can set an expiry date on these when you write them.


这篇关于您的会话过期.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆