Title: Biscotti
Author: Jason Cosper
Published: <strong>Genver 10, 2023</strong>
Last modified: Mae 1, 2024

---

Search plugins

![](https://ps.w.org/biscotti/assets/banner-772x250.jpg?rev=2846291)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/biscotti/assets/icon-256x256.png?rev=3079956)

# Biscotti

 By [Jason Cosper](https://profiles.wordpress.org/boogah/)

[Download](https://downloads.wordpress.org/plugin/biscotti.2.1.0.zip)

 * [Details](https://bre.wordpress.org/plugins/biscotti/#description)
 * [Reviews](https://bre.wordpress.org/plugins/biscotti/#reviews)
 *  [Installation](https://bre.wordpress.org/plugins/biscotti/#installation)
 * [Development](https://bre.wordpress.org/plugins/biscotti/#developers)

 [Support](https://wordpress.org/support/plugin/biscotti/)

## Description

Biscotti is a plugin that modifies the expiration of the logged in user cookie in
WordPress to three months, six months, or one year. Because some people hate to 
have to keep entering their passwords.

### WP-CLI Commands

As of version 2.1.0, Biscotti includes WP-CLI commands for managing a user’s logged
in session cookie expiration.

#### biscotti get

This command returns the previously defined cookie expiration of a user.

### Options

    ```
    <user_id> — The ID of the user. 
    ```

#### biscotti set

This command sets the logged in session cookie expiration of a user.

### Options

    ```
    <user_id> — ID of the user.

    <expiration> — New expiration duration. It must be one of the following values: `'3 months'`, `'6 months'`, `'1 year'`
    ```

#### Note

Please remember to replace the `user_id` and `expiration` placeholders with the 
actual user ID and desired expiration duration when running either of these commands.

## Installation

To install this plugin, drop `biscotti.php` into your site’s `wp-content/plugins`
directory and activate it.

## FAQ

### How do I work this thing?

Once the plugin has been activated, a new option will be available in the WordPress
dashboard under “User -> Profile” called “Login Cookie Expiration”. There, you can
select the cookie expiration date of 3 months, 6 months, or 1 year on a per-account
basis.

After updating this setting, you _will_ need to log out and back into WordPress 
for your new cookie expiration value to take effect.

Enjoy your long cookie!

## Reviews

![](https://secure.gravatar.com/avatar/9795c19a1886e62140bcac4a0b8e41158b4859f855594206d1f8ccc1cb991660?
s=60&d=retro&r=g)

### 󠀁[Thank you so much!!](https://wordpress.org/support/topic/thank-you-so-much-180/)󠁿

 [protoo](https://profiles.wordpress.org/protoo/) miz Here 7, 2023

This plugin really helped relieve me of my “WordPress keeps logging me out” frustration,
I tried other options that promise the same features before finding this gem, and
this is the BEST, SIMPLEST one! This plugin is of HUGE help and is CRUCIAL to my
website, I don’t know what I would’ve done without it! I appreciate you SO much,
plugin author! Keep up the great work, I wish you the absolute best!

 [ Read all 1 review ](https://wordpress.org/support/plugin/biscotti/reviews/)

## Contributors & Developers

“Biscotti” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ Jason Cosper ](https://profiles.wordpress.org/boogah/)
 *   [ webaware ](https://profiles.wordpress.org/webaware/)

[Translate “Biscotti” into your language.](https://translate.wordpress.org/projects/wp-plugins/biscotti)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/biscotti/), check out
the [SVN repository](https://plugins.svn.wordpress.org/biscotti/), or subscribe 
to the [development log](https://plugins.trac.wordpress.org/log/biscotti/) by [RSS](https://plugins.trac.wordpress.org/log/biscotti/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.1.0

Added WP-CLI command. Bumped required PHP version to 8.0.

#### 2.0.3

@webaware has decided to help make this code less awful and submitted a pull request
on GitHub. This release implements their improvements.

#### 2.0.2

Sanitize. Not escape. Ack!

#### 2.0.1

Forgot to escape the lone `$_POST` in my code. Feel dumb about it. Fixed now tho.

#### 2.0.0

Rewrite! Now, instead of forcing _everyone_ to use the same login cookie expiration,
Biscotti allows users to individually select their login cookie expiration on their
profile page.

#### 1.0.0

Initial release. Simple plugin that forced login cookie expiration for every user
to 1 year.

## Meta

 *  Version **2.1.0**
 *  Last updated **2 years ago**
 *  Active installations **20+**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **6.5.8**
 *  PHP version ** 8.0 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/biscotti/)
 * Tags
 * [cookies](https://bre.wordpress.org/plugins/tags/cookies/)[login](https://bre.wordpress.org/plugins/tags/login/)
   [profile](https://bre.wordpress.org/plugins/tags/profile/)
 *  [Advanced View](https://bre.wordpress.org/plugins/biscotti/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/biscotti/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/biscotti/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/biscotti/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/biscotti/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/biscotti/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/biscotti/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/biscotti/reviews/)

## Contributors

 *   [ Jason Cosper ](https://profiles.wordpress.org/boogah/)
 *   [ webaware ](https://profiles.wordpress.org/webaware/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/biscotti/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://paypal.me/boogah)