在MVC3中逐步创建Cookie [英] Create Cookie Step by step in MVC3
本文介绍了在MVC3中逐步创建Cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何逐步创建Cookie,
当用户单击记住我"时,会存储用户的登录ID和密码.选项
并且我打算在一定时间后终止此Cookie.
How can i create a cookie step by step,
that stores the user login id and password when he/she clicks Remember Me? option
and i am planing to kill this cookie after certain time
推荐答案
这里介绍了如何在MVC中使用Cookie: ^ ]
使用逻辑具有记住我"功能.
请在此处阅读有关类似主题的讨论:在ASP中实现记住我"功能.NET MVC [ ^ ]
Here have a look on how cookies are used in MVC: HowTo: create and remove Cookies with ASP.NET MVC[^]
Use the logic to have a ''remember me'' feature.
Do read discussion on similar topic here: Implementing "Remember Me" Feature in ASP.NET MVC[^]
要创建和阅读Cookie,请参阅以下
http://stackoverflow. com/questions/9313189/create-and-read-cookie-to-confirm-logged-in-user-in-c-sharp-mvc3 [ http://stackoverflow.com/Questions/5122404/how-do-you-clear-cookies-using-asp-net-mvc-3-and-c [
Hi,
To create and read the cookies refer the below
http://stackoverflow.com/questions/9313189/create-and-read-cookie-to-confirm-logged-in-user-in-c-sharp-mvc3[^]
To clear the cookies please refer the link below
http://stackoverflow.com/questions/5122404/how-do-you-clear-cookies-using-asp-net-mvc-3-and-c[^]
这篇关于在MVC3中逐步创建Cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文