用户控制到会话中的用户登录丢失 [英] User Control to User Login in Session Lost

查看:83
本文介绍了用户控制到会话中的用户登录丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

我正在登录页面和一些与用户帐户相关的页面上工作.
如果存在用户会话,则所有页面都将打开.
现在,如果用户丢失了会话,我将重定向到登录屏幕.
但是我不想那样做.
我想在同一个页面上显示一个小div,如果他/她的会话丢失了,请再次登录并保留在同一个页面中.
我打算使用用户控件,以便不希望将所有页面都编码为相同的文本.

如果没有其他建议,我的想法是正确的.

Dear Friends,

I am working on Login Page and few user account related pages.
All the pages will open if session of the user exists.
Now I am redirecting to login screen if the user lost his/her session.
But I dont want to do that.
I want display a small div in the same page, if his/her session has lost, to login once again and retain in same page.
I am planning to use the user control so that I dont want to code all the page same text.

Is my idea is right, if no kindly suggest any other way.

推荐答案

如果没有其他建议,我的想法正确.
想法还可以.您可以继续尝试并实施它. :thumbsup:

如果遇到问题,请发布特定问题.
Is my idea is right, if no kindly suggest any other way.
Idea is okay. You can move ahead and try to implement it. :thumbsup:

Post specific issue if you get stuck.


这篇关于用户控制到会话中的用户登录丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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