如何在用户访问网站期间维护用户ID,姓名,部门和角色? [英] How to maintain the UserID, Name, Dept and Role of a User during his Visit to the Site ?
本文介绍了如何在用户访问网站期间维护用户ID,姓名,部门和角色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在访问网站期间维护用户的用户ID,姓名,部门和角色的良好做法是什么?我应该把它存放在会话中吗? Bcz会话将在20分钟后过期......或者如果我将其存储在母版页的隐藏标签中是否可以?
Hi,
What is the good practice to maintain the UserID, Name, Dept and Role of a User during his Visit to the Site ? Should i store it in session? Bcz the session will expire after 20min... Or is it OK if i store this in the Hidden labels of the Master Page?
推荐答案
我认为Session更好的方式
BCz它可以提高您的网站安全性
I think Session is better way
BCz it increase your web site security
这篇关于如何在用户访问网站期间维护用户ID,姓名,部门和角色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文