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

  • Home
  • SEARCH
  • 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 8953371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:04:44+00:00 2026-06-15T14:04:44+00:00

I wonder what’s the reasons of cookie login problems in most PHP scripts like

  • 0

I wonder what’s the reasons of cookie login problems in most PHP scripts like WordPress?

This is common a problem in WordPress login page and a lot of other PHP scripts. Sometimes you can’t login, and it tells you to clear the browser cookie data.

What things can cause this problem and how to avoid it in our web application development?

  • 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-15T14:04:46+00:00Added an answer on June 15, 2026 at 2:04 pm

    That’s a pretty broad question. Personally I’ve not experienced it with WordPress, but it is possible: the set of cookies allocated to the user end up in a conflicted state, and the program doesn’t know how to proceed.

    For example, imagine that we set a cookie when logged in, called “login”, which contains a username. And let us say that we set a cookie when logging out, called “logout”, and we delete the “login” cookie. Now, if we are on the login screen, and the program receives both cookies, then it is clear it shouldn’t fail – the “login” cookie can be ignored. But it might be the case that some applications get confused, and raise errors in these apparently conflicting circumstances. The job of the developer is, as always, to program defensively, so it still works as much as possible, even with unexpected input.

    As I say, I’ve not experienced it with WordPress, but I recently discovered WP is probably more susceptible to it, since it doesn’t use sessions – just cookies. One WP host I found doesn’t support $_SESSION at all, since it is tricky to implement across a hosting farm. Now, with a session, if you unset a value, it will disappear, since you have control over it on your server. But with a cookie, if you unset a value, it is just a request, and a browser may not honour it, or a client-side time setting may incorrectly allow a dead cookie to persist.

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

Sidebar

Related Questions

I wonder if it is possible to supress errors in PHP like when redeclaring
Wonder if anyone can help me with this problem. I have created a Window
Wonder if anyone has any thoughts on this, I'm putting a Wordpress theme toegther
wonder if someone could help me with a little problem. I have session values
I wonder whether someone has an idea for how to count combinations like the
Wonder if this possible. Saw many posts on adding watermark after the pdf is
wonder if I could get some advice on the best way to solve this
Wonder what the community says about the most efficient (in terms of I/O and
I wonder what I should be carefull of updating PHP on Windows(with Apache). My
I wonder if any other users of PhpMyAdmin for Mysql have come across this

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.