Title: Cookie TTL
Last modified: August 18, 2016

---

# Cookie TTL

 *  [pebdakota](https://wordpress.org/support/users/pebdakota/)
 * (@pebdakota)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/cookie-ttl/)
 * 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)

 *  [carthik](https://wordpress.org/support/users/carthik/)
 * (@carthik)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/cookie-ttl/#post-160893)
 * 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](https://wordpress.org/support/users/pebdakota/)
 * (@pebdakota)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/cookie-ttl/#post-160935)
 * 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.

 * 2 replies
 * 2 participants
 * Last reply from: [pebdakota](https://wordpress.org/support/users/pebdakota/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/cookie-ttl/#post-160935)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
