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 8442733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:55:14+00:00 2026-06-10T08:55:14+00:00

Possible Duplicate: PHP Storing Current Session IDs in Database using Cookies I want to

  • 0

Possible Duplicate:
PHP Storing Current Session IDs in Database using Cookies

I want to have login persistence for my users with COOKIES. But, the more I read and learn the more I realize that they can be tampered with. Thus, making them not the safest method to go. I am only storing the user’s id as to remember them across multiple pages while they are logged in. Of course, I know that SESSIONS are the best way to go, but only as far as security is concerned. Right? They aren’t good for persistence like COOKIES are, and that is what I am going for. So that users don’t have to re-login every time they close and reopen their browser. What can I do?

  • 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-06-10T08:55:15+00:00Added an answer on June 10, 2026 at 8:55 am

    While this has been answered in the comments, let me stress a main point: Login persistence means nothing else, than moving user login (or a big part thereof) from the responsibility and control of your app to the responisbility of a browser,which you don’t control runninf on an OS you don’t conrol on a device you don’t control.

    This need not be so horrible as it sounds, e.g. an internal-facing webapp with all logins coming from a supervised OS in a security construct such as a domain might be perfectly acceptable.

    OTOH, depending on the kind and value of the data your app handles, this might definitly NOT be acceptable: Users logging on from some kind of public internet terminal to update their healthcare data with logon persistence might land you in jail in some jurisdictions. So let me suggest, that before looking at the how of login persistence, you revisit the if and the context.

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

Sidebar

Related Questions

Possible Duplicate: Storing echoed strings in a variable in PHP Suppose I have <?php
Possible Duplicate: Can't pass mysqli connection in session in php Many of us have
Possible Duplicate: convert string to 2D array using php I have the string like
Possible Duplicate: Cookie VS Session PHP: How do Cookies and Sessions work? I'm trying
Possible Duplicate: PHP storing password in cookie In a login system, if a user
Possible Duplicate: PHP Get end string on url between / and / I have
Possible Duplicate: remove duplicate from string in PHP Have a string like: $str =
Possible Duplicate: PHP get both array value and array key I am using Codeigniters'
Possible Duplicate: PHP create a file without fopen I want to create a file
Possible Duplicate: php false place in condition I have noticed that a lot of

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.