Title: Change Login Cookie
Last modified: August 18, 2016

---

# Change Login Cookie

 *  [apoulemanos](https://wordpress.org/support/users/apoulemanos/)
 * (@apoulemanos)
 * [21 years ago](https://wordpress.org/support/topic/change-login-cookie/)
 * I’m designing a blog that will mostly be used by people on shared computers, 
   and all of them will have to post (they’re police officers in their cruisers —
   mobile intranet — if you are really interested). Therefore, the normal way that
   WordPress administers cookies is inadequate, because teaching people to logout
   is harder than you might think. Is there a way to set a shorter time for a valid
   cookie (i.e. 10 minutes), or make it so they always have to login (never saves
   information)? Also, could I add a check box somehow to allow it to save the login
   information (for those that do not share a computer — this is less important 
   though)? WP 1.5
 * Thanks.

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

 *  [Cypher](https://wordpress.org/support/users/cypher/)
 * (@cypher)
 * [21 years ago](https://wordpress.org/support/topic/change-login-cookie/#post-213286)
 * Search for calls to “setcookie” in the wordpress code, you should find them in
   wp-login.php file and a file in the /wp-admin directory. The number you see there
   is the number of seconds after which the cookie is to expire. By default, the
   value is insanely large, just bring that down to 600 for 10 minutes.
 * Regards
 *  [freemoby](https://wordpress.org/support/users/freemoby/)
 * (@freemoby)
 * [21 years ago](https://wordpress.org/support/topic/change-login-cookie/#post-213964)
 * Here’s a plugin that will allow you to set the login cookie expiration:
 * [http://www.freemoby.com/2005/05/21/wordpress-plugin-cookie-timeout/](http://www.freemoby.com/2005/05/21/wordpress-plugin-cookie-timeout/)

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

The topic ‘Change Login Cookie’ is closed to new replies.

## Tags

 * [cookies](https://wordpress.org/support/topic-tag/cookies/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [freemoby](https://wordpress.org/support/users/freemoby/)
 * Last activity: [21 years ago](https://wordpress.org/support/topic/change-login-cookie/#post-213964)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
