This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 在一个web应用中,用户login,应用设置session,我希望当用户离开一段时间后,session time out,应用自动显示login page,就象是屏幕保护那样,请问如何实现.
-cathy618(cathy);
2003-5-6
(#1174886@0)
-
After login, set a session varible Login="Yes". In the beginning of every page, check if Login = "Yes". If not, redirect to login page.After session time out, the session valiable is lost. So will be redirect to login page.
-xixi9(嘻嘻);
2003-5-9
{88}
(#1180081@0)
-
多谢.可是照你说的,在session timeout 之后只有再load一个page,才能由这个page来发现session time out 了,而我需要的是系统自动把login page 显示出来
-cathy618(cathy);
2003-5-9
(#1180131@0)
-
session out 后应该会触发个事,你对着这个事件编代码,不就行了吗
-bobo123(bobo);
2003-5-9
(#1180158@0)
-
session out 后应该会触发个事件?什么事件?session 是 server 端的怎么触发事件,请指教详细点.
-cathy618(cathy);
2003-5-12
(#1184513@0)
-
event: session_end in global.aspx or something like that.
-luoboyang(萝卜秧);
2003-5-12
(#1184541@0)
-
秧子, session_end in global.aspx 似乎发生的时间不确定是吗? 我做过几次试验, 感觉好像是这样的.
-decentboy(ROLIA第39);
2003-5-12
(#1184557@0)
-
嘿嘿,我知道这个event,但是还没有碰到需要用的说~~~
-luoboyang(萝卜秧);
2003-5-12
(#1184581@0)
-
it's not that often seen in web apps, however you also work it around with a client script timer.
-agentkiller(等待好消息);
2003-5-12
(#1184546@0)