remember-me

What encryption algorithm is best for encrypting cookies?

蹲街弑〆低调 提交于 2019-11-27 05:54:53
Since this question is rather popular, I thought it useful to give it an update. Let me emphasise the correct answer as given by AviD to this question: You should not store any data that needs encrypting in your cookie. Instead, store a good sized (128 bits/16 bytes) random key in the cookie and store the information you want to keep secure on the server, identified by the cookie's key. I'm looking for information about 'the best' encryption algorithm for encrypting cookies. I hava the following requirements: It must be fast encrypting and decrypting the data will be done for (nearly) every

ASP.NET MVC RememberMe

落爺英雄遲暮 提交于 2019-11-27 05:09:08
问题 After searching a lot i did not get any answers and finally i had to get back to you. Below i am explaining my problem in detail. It's too long, so please don't quit reading. I have explained my problem in simple language. I have been developing an asp.net mvc project. I am using standard ASP.NET roles and membership. Everything is working fine but the remember me functionality doesn't work at all. I am listing all the details of work. Hope you guys can help me out solve this problem. I

Implementing “Remember Me” Feature in ASP.NET MVC

孤街醉人 提交于 2019-11-26 12:53:33
问题 I\'m trying to implement a \"remember me\" feature to my login form. I am using ASP.NET MVC as my web application. I managed to get the cookie stuff working, but I failed to automatically login the user in case he/she checked the remember me checkbox before. I know what the problem is but I do not know how to solve it. In my HomeController I have the following: private LoginViewModel CheckLoginCookie() { if (!string.IsNullOrEmpty(_appCookies.Email) && !string.IsNullOrEmpty(_appCookies

What encryption algorithm is best for encrypting cookies?

雨燕双飞 提交于 2019-11-26 12:49:39
问题 Since this question is rather popular, I thought it useful to give it an update. Let me emphasise the correct answer as given by AviD to this question: You should not store any data that needs encrypting in your cookie. Instead, store a good sized (128 bits/16 bytes) random key in the cookie and store the information you want to keep secure on the server, identified by the cookie\'s key. I\'m looking for information about \'the best\' encryption algorithm for encrypting cookies. I hava the

Is it secure to store passwords in cookies?

五迷三道 提交于 2019-11-26 12:23:36
问题 My web application\'s home page has a RememberMe checkbox. If the user checks it, I willl store email-id and password in cookies. This is my code: if (this.ChkRememberme != null && this.ChkRememberme.Checked == true) { HttpCookie cookie = new HttpCookie(TxtUserName.Text, TxtPassword.Text); cookie.Expires.AddYears(1); Response.Cookies.Add(cookie); } What I want to know is: Is it secure to store passwords in cookies? What is proper way of doing the same? What are the best practices in setting

PHP login system: Remember Me (persistent cookie) [duplicate]

允我心安 提交于 2019-11-26 03:23:11
This question already has an answer here: “Keep Me Logged In” - the best approach 12 answers I'd like to add a "remember me" checkbox option before logging in. What is the best way to securely store a cookie in the user's browser? For example, Facebook have their "remember me" checkbox so that every time you enter facebook.com you are already logged in. My current login uses simple sessions. Paul Dixon This question gets asked a lot, here's some links for you. Best Practice to Implement Secure “Remember Me” “Remember Me On This Computer” - How Should It Work? “Keep Me Logged In” - the best

PHP login system: Remember Me (persistent cookie) [duplicate]

大城市里の小女人 提交于 2019-11-26 01:13:21
问题 This question already has an answer here: “Keep Me Logged In” - the best approach 12 answers I\'d like to add a \"remember me\" checkbox option before logging in. What is the best way to securely store a cookie in the user\'s browser? For example, Facebook have their \"remember me\" checkbox so that every time you enter facebook.com you are already logged in. My current login uses simple sessions. 回答1: This question gets asked a lot, here's some links for you. Best Practice to Implement

“Keep Me Logged In” - the best approach

倖福魔咒の 提交于 2019-11-25 22:48:53
问题 My web application uses sessions to store information about the user once they\'ve logged in, and to maintain that information as they travel from page to page within the app. In this specific application, I\'m storing the user_id , first_name and last_name of the person. I\'d like to offer a \"Keep Me Logged In\" option on log in that will put a cookie on the user\'s machine for two weeks, that will restart their session with the same details when they return to the app. What is the best

What is the best way to implement “remember me” for a website? [closed]

会有一股神秘感。 提交于 2019-11-25 21:47:13
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I want my website to have a checkbox that users can click so that they will not have to log in each time they visit my website. I know I will need to store a cookie on their computer to implement this, but what should be contained in that cookie? Also, are there common mistakes to