如何在登录页面上创建和销毁cookie? [英] How to create and destroy cookie on login page ?

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

问题描述

我正在使用aspx.cs创建登录页面.我想使用一个复选框创建一个记住我" cookie,该复选框将有助于记住用户ID,但是如果其他用户ID要使用同一台计算机登录,也将允许销毁该ID,但是我不知道如何启动.有什么帮助吗?谢谢!

I am using aspx.cs to create a login page. I would like to create a remember me cookie using a checkbox that will help to remember user ID but will also allow it to be destroy if a different user ID wants to log in with the same computer, but i have no idea how to start. Any assistance? Thank you!

推荐答案

请参考:
ASP.NET Cookies概述 [
Please refer:
ASP.NET Cookies Overview[^]


开始阅读的时间:
Time to start reading: On The Care and Handling of Cookies[^]


这篇关于如何在登录页面上创建和销毁cookie?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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