Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3788980
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:05:02+00:00 2026-05-19T12:05:02+00:00

During the time I’ve spent taking breaks from learning how PHP supports Unicode I’ve

  • 0

During the time I’ve spent taking breaks from learning how PHP supports Unicode I’ve been delving into making my “Remember Me” cookies a bit more secure. However there are a few things I don’t understand and a few of my own musings I’d like some suggestions and opinions on.

1) Is there any method to adopting a “Remember Me” feature that doesn’t involve cookies? Curious since there are obvious security flaws in storing authentication cookies. Not that there aren’t security risks in just about everything.

2) Since I’m not working with a bank or “highly sensitive” information, is it necessary to require users to enter their passwords for the more “high profile” areas? It seems that remembering a login would be a waste if we’re just going to ask them to essentially log in anyway two minutes later.

3) What’s the absolute best method for storing an authentication cookie (aside from “not at all”)? I have currently coded that area to set a single token in the cookie (hashed using time(), their user agent, remote_addr, and a salt – sha256). When said user comes back it checks the ‘sessions’ table for the token, then matches IP to IP to log them in. If the token is there but the IP doesn’t match it silently unsets the cookie and asks them to log in as if they didn’t have one.

Thanks again everyone.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T12:05:03+00:00Added an answer on May 19, 2026 at 12:05 pm
    1. Essentially, no. It requires some sort of storage on the client side; you have no way to know who a client is without a cookie (or similar, like HTML 5 client-side storage).

    2. That is a trade-off you must decide. Minimum, the old password or some other form of confirmation (e-mail?) should be required to change it to a new one.

    3. You can’t absolutely protect against cookie theft and subsequent impersonation unless you encrypt all the communications. That’s the only secure method. Sure, associating an IP, user-agent etc. to the cookie might be helpful, but it’s easier and much more secure to rely on encryption. (I misunderstood the point here — what’s important in the value of the cookie is that it’s random, so you ought to change your generational method to be less predictable)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

During last time I made many integrations (data transfer from one place to another,
After typing text into a combobox during run time, how do I add it
How do I access an image during run time that I have added to
This problem occurred during daylight saving time change. After the change occurred, we've noticed
Long time listener, first time caller. I'm a full time SE during the day
We need to generate LINQ queries which are 100% unknown during coding (design time).
During development I have to clear cache in Firefox all the time in order
It says (note this is during run-time I get this error)... I have no
When I run my project for the first time during an SBT session, it
Is it possible to compile a cs file during run time so I can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.