28

I want to include "Remember Me" functionality on login page but I don't know its actual meaning (how its work). I have seen different uses at many websites but I didn't get its actual meaning.

Adrian
  • 5,571
  • 9
  • 41
  • 68
Naresh Ramoliya
  • 620
  • 2
  • 8
  • 25
  • Have a look at this SO question "Form based authentication for websites" http://stackoverflow.com/questions/549/the-definitive-guide-to-form-based-website-authentication – Adrian Aug 07 '14 at 13:28
  • And this one "What is the best way to implement "remember me" for a website?" http://stackoverflow.com/questions/244882/what-is-the-best-way-to-implement-remember-me-for-a-website – Adrian Aug 07 '14 at 13:31
  • Okay I seen but why are you down voted to this question?. I have search and found no result so what i do? And I have seen many places where remember me used as different then you have answered that why I asked the question. – Naresh Ramoliya Aug 07 '14 at 13:35

3 Answers3

15

Some web applications may need a "Remember Me" functionality. This means that, after a user login, user will have access from same machine to all its data even after session expired. This access will be possible until user does a logout.

From here Using Cookies to implement a RememberMe functionality

Adrian
  • 5,571
  • 9
  • 41
  • 68
3

It means you save a cookie (or any other local storage option) with some kind of identifiable information about the user.
For more information you can search in the internet for simple implementations of user authentication platforms using PHP, ASP, JSP or any other Server-Side programming language. (Depends on what you know)

matan7890
  • 478
  • 3
  • 17
0

With ASP.NET Core this functionality sets the login cookie persistence so it is either cleared when the browser closes or it is retained. This is a very specific thing.

If a user ticks "remember me", then closes and later re-opens their browser, they will be still be logged in if the server didn't otherwise time-out the session.

You can see clearly in the sample code that the "remember me" checkbox sets a parameter in a call to PasswordSignInAsync() named "isPersistent". Documentation shows "persistence" sets the Expires value of the login cookie to "Session" if you do not tick the "remember me" box, or now plus 7 days (the default) if you tick it. I've tested this just now and it's precisely how this behaves.

philw
  • 571
  • 8
  • 18