如何使用session来创建登录页面 [英] How to use session to make a login page

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

问题描述

亲爱的所有



我正在尝试编写一个基于ASP.Net的网站。当我使用用户名和密码创建登录页面,并且还连接到SQL服务器。但是当我输入正确的用户名和密码时。它需要单击登录两次才能登录。登录后,当我返回登录页面时。无论我想要输入用户名和密码文本框。系统将始终登录。我听说会话可以提供帮助,但我不知道如何使用它。有没有人可以帮助我?或者给我看一些可用的代码示例?



谢谢



吉米

解决方案

< blockquote> http://www.aspdotnet-suresh。 com / 2012/11 / aspnet-session-state-example-in-c-vbnet.html [ ^ ]


Dear All

I''m trying to write a website which based on ASP.Net. When I made a login page with username and Password, and also connected to a SQL server. But when I type in the right username and password. It will need to click login twice to login. Once I login, when I go back to the login page. No matter what I''m trying to type in the username and password textbox. The system will always log me in. I heard that the session can help, but I don''t have any idea how to use it. Is there anyone could help me? Or show me some usable code samples please?

Thank you

Jimmy

解决方案

http://www.aspdotnet-suresh.com/2012/11/aspnet-session-state-example-in-c-vbnet.html[^]


这篇关于如何使用session来创建登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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