• I want to password protect a page. But I’ve noticed that once I use the password, I always have access to that page. The cookie must have a really long life.

    I want people to be able to access the page from a public browser like a library, but I don’t want one user to give everybody else that uses the browser access.

    Where can I see the cookie TTL for the passwords.

    Thanks,
    PEB

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can modify wp-login.php to acheive whatever you need. Please make sure you remember the changes you made for when you upgrade later.

    Thread Starter pebdakota

    (@pebdakota)

    I didn’t see anything in the wp-login file to change.

    I found the TTL times set in “functions.php” in the “wp-includes” folder.
    There’s a cookie for password and user, but they didn’t help with the password TTL used for page protection. I found that one in the “wp-pass” file in the root address. That fixed things, though it appeared to apply to postings, not pages.

    I’m curious now, though, about what the “password” cookie in the “functions.php” file is for? Why would it separate from the “user” cookie, and have a different TTL?

    Good thing I had linux and grep or I’d still be searching for a things.

    PEB

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cookie TTL’ is closed to new replies.