登录时如何创建会话变量 [英] how to create session variable while login

查看:69
本文介绍了登录时如何创建会话变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好... !!
我是asp.net的新手,我的问题是,如何在登录时创建会话..恰恰是我想要这样的事情:如果用户登录到他的帐户信息页面,然后注销frm,则应该放弃相同的会话,如果他单击返回浏览器,然后应要求他重新登录...
请让我知道怎么可能,并请提供完整的代码和说明..
在此先感谢
来自
Kushal

Hello everyone...!!
i m new to asp.net and my question is that how to create session while login..means exactly i want such thing that if user login to his account information page and then logout frm the same then session should be abandone and if he clicks on back in browser then he should be asked to relogin again...
kindly let me knw how it will be possible and kindly provide me full code and explaination..
thanks in advance
From
Kushal

推荐答案

您可以从多种方法中进行选择.
一些链接-
http://csharpdotnetfreak.blogspot.com/2008/12/user-validation- cross-pages-using.html [ ^ ]
http://www.codefixer.com/asp-net/tutorials/password-protected-asp-net-login.asp [ ^ ]
没有Cookie的ASP.NET会话登录 [使用Session创建安全ASP.NET登录的简便方法 [
You can choose from a number of ways to do this.
Some links -
http://csharpdotnetfreak.blogspot.com/2008/12/user-validation-across-pages-using.html[^]
http://www.codefixer.com/asp-net/tutorials/password-protected-asp-net-login.asp[^]
ASP.NET Session Login Without Cookies[^]
Easy way to create secure ASP.NET login using Session[^]


这篇关于登录时如何创建会话变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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