Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • syn-rg 282 posts 425 karma points
    Nov 02, 2011 @ 06:19
    syn-rg
    0

    How does the "remember me" function work?

    Can someone tell me how the "remember me"  function is supposed to work?

    Should it be saving my username and password in the relevant text fields?
    Do I need my browser to "save" my password?

    I'm asking because I can't find a reason to keep this checkbox on my website, as I don't think it's working, and seems redundant if the browser can save the username and password anyway.

    Let me know your thoughts.

    Cheers,
    JV

  • Markus Johansson 1945 posts 5899 karma points MVP 3x c-trib
    Nov 02, 2011 @ 08:33
    Markus Johansson
    1

    From what i know it justs keep a cookie that are used to authenticate the user the next time he/she visits the site. More like "keep me logged in".

  • Rodion Novoselov 694 posts 859 karma points
    Nov 02, 2011 @ 09:04
    Rodion Novoselov
    1

    Hi. Techically in both cases the forms authentication is implemented with cookies. In case when something like a "keep me logged in" checkbox is not selected asp.net creates a so called "session cookie" - a cookie that's not persisted in the local  client storage (simply speaking a hard drive) and dies away as soon as the current browser window is closed. "Keep me logged in" option makes it to create a persistent cookie with a definite life span - such a cookie will be saved locally on the client and will be reused on the next visit to the site even after closing and opening a browser window again.

  • syn-rg 282 posts 425 karma points
    Nov 03, 2011 @ 23:53
    syn-rg
    0

    Thanks for the clarification. It is working for me, but my browser settings delete all history, cache and cookies when I quit the browser.

    I'll re-word it to "keep me logged in" as this more accurate, as I think "remember me" is misleading.

    So for anyone else interested, the function works, but only if your or your users browsers are set up to accept cookies and not delete them when you quit the browser.

    Cheers,
    JV

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies