超时时从会话中获取userifo [英] getting userifo from session when times out

查看:65
本文介绍了超时时从会话中获取userifo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



在我的应用程序中有两种用户。一个直接通过登录页面登录到应用程序,其他人通过单点登录直接登录。我的要求是当我的应用程序超时时,我应该将它们重定向到登录页面,对于单点登录用户,他们应该被重定向到会话超时页面。我将用户信息保存在会话变量中。我怎样才能实现这一目标。我将用户信息保存在其他地方。当它超时我无法从会话中获取用户信息。



请回复我。



谢谢

PP

Hi All

In my application two kinds of users are there. One directly logs in to the application through login page and others directly through single sign on. My requirement is when the my application times out for general user I should redirect them to the login page and for single sign on users they should be redirected to the session time out page. I keep my user information in the session variable. How can I achieve this.DO I save the user info some where else. When it times out I can't get the user info from the session.

Please reply me.

Thanks
PP

推荐答案

您可以在应用程序级别而非用户会话中存储有关用户登录类型的信息 - 因为用户的会话在超时时消失了。

您也可以考虑外部存储(某种SQL?)...



(点击此处 http://msdn.microsoft.com/en- us / library / 94xkskdf(v = vs.100).aspx [ ^ ])
You may store your bit of info about login type of users on application level and not on user's session - as user's session is gone when time-out.
You may also consider external storage for this (SQL of some kind?)...

(Read here http://msdn.microsoft.com/en-us/library/94xkskdf(v=vs.100).aspx[^])


这篇关于超时时从会话中获取userifo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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