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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:23:51+00:00 2026-06-08T04:23:51+00:00

When setting Cookiee on the server with properties(httpOnly and secure=true), does that mean it

  • 0

When setting Cookiee on the server with properties(httpOnly and secure=true), does that mean it will only be secured during the communication beween server and client, but not after that?
In other words, if the value was originally in plainText -will it also be stored on the client side with plainText (after traveling with https ) -making it unsafe/vulnerable?

1) Do passwords needs to be always encrypt befors sending (even when using https)?

2) Where is httpCookiee (with secure=true) stored? and is this storage access is protected?

  • 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-08T04:23:53+00:00Added an answer on June 8, 2026 at 4:23 am

    You probably don’t want store the password.

    What you need is store some “user is already authenticated” flag.

    After all, you should learn about “digest access authentification”. Storing hashed data is always plus.

    This answer is too short, mainly bacause here is too much possibilities – and too much open questions.

    Handling returning users:

    You can manage (server side) an session database. in the cookie you storing only session ID. when the user authenticate itself, you’re store into your server side database his status: “logged in”. when he log out, you change in the DB status: “logged off”.

    Handling returning users has nothing with “storing passwords” in any way. You for example can authenticate users by external auth-services, like open-id, twitter, facebook etc., you’re only storing his status by some session-ID or similar.

    Browsers usually can store user-names/passwords, but this all time should be the user responsibility. When the user want only remeber his passwords, you should not store it in any way.

    Why you want complicating your app and security mechanisms with storing encrypted passwords in cookies – what is not a correct solution – from any point of view?

    Simple flow:

    • When an new user comes to your site – you assign him an new session-ID and store the SID into a cookie
    • when he login (via https) – you’re store in your DB = “sessionID” -> “logged in”
    • when he return after a week, you can (server side) either accept his session-ID from the cookie – and from DB you can get his “logged-in” status, or, you can force login him once again (for example because of expiration)
    • all of the above is without any risk storing passwords in any way
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following requirements: create a cookie for server domain that cookie will expire
I currently am setting a cookie in my code that last for 10 minutes.
I am setting a cookie for each navigation container that is clicked on. It
We're supporting legacy code that is dropping a cookie and setting the expiration to
I've a problem with setting cookies in php. I've to say that I'm not
I want to delete cookie on server (by means of setting Expires to the
At work we ran up against the problem of setting server-side cookies - a
I have a Rails app that sets a cookie and does a redirect to
I am having a problem with setting cookie with php. I am trying to
I am setting a cookie, but having some issue. Currently the cookie format is

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.