Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: stay signed in

  1. #1
    New Coder
    Join Date
    Mar 2009
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    stay signed in

    Need help to implement concept of 'Stay signed in' for users who want to avoid facing session timeout

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    Make the login cookie-based instead of session-based, if "Stay Logged In" is selected.
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #3
    New Coder
    Join Date
    Mar 2009
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I had planned to do it with cookies but have some queries
    Is it safe to use cookies
    If a user accesses his account on a shared computer and cookies are not destroyed then it might allow another user to have his account's access.

  • #4
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,869
    Thanks
    79
    Thanked 4,418 Times in 4,383 Posts
    Depends on HOW the computer is shared. If each user has a separate account and does not foolishly give permissions to others sharing the computer, it will be fine. But of course many people are not computer savvy enough to lock down their account properly. Your fears are well-grounded.

    But there is an easy answer: Do it like all the big sites do (e.g., EBay). Have a checkbox for "Stay signed in" and, when it is checked, issue a warning message that they should not do this on a public computer. Only use the cookies *IF* they check the checkbox and confirm the choice.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #5
    New Coder
    Join Date
    Mar 2009
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Agree with your suggestion, Thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •