مەزمۇنغا ئاتلاش
WordPress.org

ئۇيغۇرچە

  • ئۆرنەكلەر
  • قىستۇرمىلار
  • خەۋەرلەر
  • قوللاش
  • ھەققىدە
  • WordPress كە ئېرىشىش
WordPress كە ئېرىشىش
WordPress.org

Plugin Directory

Biscotti

  • قىستۇرما تاپشۇرۇڭ
  • ياقتۇرغانلىرىم
  • تىزىمغا كىرىڭ
  • قىستۇرما تاپشۇرۇڭ
  • ياقتۇرغانلىرىم
  • تىزىمغا كىرىڭ

Biscotti

يازغۇچى Jason Cosper
چۈشۈر
  • تەپسىلاتلار
  • باھالاشلار
  • ئورنىتىش
  • ئىجادىيەت
قوللاش

چۈشەندۈرۈش

Biscotti is a plugin that modifies the expiration of the logged in user cookie in WordPress. Choose from the default WordPress expiration (14 days), three months (90 days), six months (180 days), or one year (365 days). Because some people hate to have to keep entering their passwords.

Features

  • Per-user cookie expiration settings
  • Four expiration options: default, 3 months, 6 months, 1 year
  • WP-CLI support for managing settings programmatically
  • Fully translatable with i18n support
  • Secure implementation with CSRF protection
  • Clean uninstall that removes all plugin data

Security

Version 3.0.0 includes critical security improvements:
* CSRF protection with nonce verification
* Input validation with whitelist checking
* Strict type comparisons throughout
* Modern PHP 8.0+ type hints

Requirements

  • WordPress 6.0 or higher
  • PHP 8.0 or higher

WP-CLI Commands

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

Get a user’s cookie expiration

wp biscotti get <user_id>

Retrieves the current cookie expiration setting for a user.

Example:
wp biscotti get 123

Set a user’s cookie expiration

wp biscotti set <user_id> <expiration>

Sets the logged in session cookie expiration for a user.

Parameters:
* <user_id> — The ID of the user
* <expiration> — One of: default, 3 months, 6 months, 1 year

Examples:
* Set to 1 year: wp biscotti set 123 '1 year'
* Reset to default: wp biscotti set 123 default

ئورنىتىش

  1. Upload the biscotti folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ›Plugins‹ menu in WordPress
  3. Navigate to your user profile (Users → Profile) to configure your cookie expiration

FAQ

How do I use this plugin?

Once activated, go to Users → Profile in the WordPress dashboard. You’ll see a new «Login Cookie Expiration» section where you can choose from four options:
* Default (14 days) – WordPress standard
* 3 months (90 days)
* 6 months (180 days)
* 1 year (365 days)

After changing this setting, log out and back in for the change to take effect.

Can I set different expirations for different users?

Yes! Each user can set their own preferred cookie expiration on their individual profile page.

What happens to my data if I uninstall the plugin?

Starting with version 3.0.0, Biscotti includes proper uninstall cleanup. When you delete the plugin through WordPress, all user meta data created by Biscotti will be automatically removed from your database.

Can I manage this via WP-CLI?

Yes! Since version 2.1.0, you can use wp biscotti get and wp biscotti set commands. See the WP-CLI Commands section for details.

Is this plugin secure?

Version 3.0.0 includes significant security improvements including CSRF protection, input validation, and modern security best practices. The plugin has been hardened against common vulnerabilities.

باھالاشلار

Thank you so much!!

protoo 2023-يىلى 7-ئۆكتەبىر
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!
1 باھالاشنىڭ ھەممىنى ئوقۇش

تۆھپىكار ۋە ئىجادكار

«Biscotti» كودى ئوچۇق يۇمشاق دېتال. تۆۋەندىكى كىشىلەر بۇ قىستۇرمىغا تۆھپە قوشقان.

تۆھپىكار
  • Jason Cosper
  • webaware

«Biscotti» نى تىلىڭىزغا تەرجىمە قىلىڭ

ئىجادىيەتكە قىزىقامسىز؟

كودقا كۆز يۈگۈرتۈپ، SVN خەزىنە تەكشۈرۈپ ياكى RSSئارقىلىق ئىجادىيەت خاتىرىسىگە مۇشتەرى بولغىلى بولىدۇ.

ئۆزگىرىش خاتىرىسى

3.0.0

Major Security & Feature Update

  • CRITICAL SECURITY FIX: Added CSRF protection with nonce verification on profile form submissions
  • SECURITY: Added input validation with whitelist checking for all user inputs
  • SECURITY: Added user existence validation in WP-CLI commands
  • SECURITY: Changed all loose comparisons to strict comparisons throughout
  • NEW: Added «Default (14 days)» option to allow users to revert to WordPress standard expiration
  • NEW: Added full internationalization (i18n) support with text domain
  • NEW: Enhanced form descriptions with clearer explanations
  • NEW: Added uninstall.php for proper database cleanup on plugin deletion
  • IMPROVED: WP-CLI commands now have better output formatting and validation
  • IMPROVED: Added PHP 8.0+ type hints throughout codebase
  • IMPROVED: Added comprehensive PHPDoc blocks
  • IMPROVED: Form markup updated with ARIA roles for accessibility
  • IMPROVED: Code organization with constants for all magic strings

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 3.0.0
  • ئاخىرقى يېڭىلانغان ۋاقىت 1 سائەت بۇرۇن
  • ئاكتىپ ئورنىتىش سانى 20+
  • WordPress نەشرى 6.0 ياكى يۇقىرى
  • 7.0 دا سىنالغان
  • PHP نەشرى 8.0 ياكى يۇقىرى
  • تىل
    English (US)
  • بەلگە
    authenticationcookiesloginprofilesession
  • ئالىي كۆرۈنۈش

دەرىجە

5/5 يۇلتۇز
  • 1 5-يۇلتۇز باھالاش 5 يۇلتۇز 1
  • 0 4-يۇلتۇز باھالاش 4 يۇلتۇز 0
  • 0 3-يۇلتۇز باھالاش 3 يۇلتۇز 0
  • 0 2-يۇلتۇز باھالاش 2 يۇلتۇز 0
  • 0 1-يۇلتۇز باھالاش 1 يۇلتۇز 0

Your review

بارلىق ئىنكاسنى كۆرسەت

تۆھپىكار

  • Jason Cosper
  • webaware

قوللاش

چۈشەندۈرۈشىڭىز بارمۇ؟ ياردەم لازىممۇ؟

قوللاش مۇنبىرىنى كۆرسەت

ئىئانە

بۇ قىستۇرمىنىڭ ياخشىلىنىشىنى قوللامسىز؟

بۇ قىستۇرمىغا ئىئانە قىلىش

  • ھەققىدە
  • خەۋەر
  • مۇلازىمىتىر
  • شەخسىيەت
  • كۆرگەزمە
  • ئۆرنەكلەر
  • قىستۇرمىلار
  • ئەندىزە
  • ئۈگىنىش
  • قوللاش
  • ئىجادكارلار
  • WordPress.tv ↖
  • قاتناشقان
  • پائالىيەت
  • ئىئانە ↖
  • Five for the Future
  • WordPress.com ↖
  • Matt ↖
  • bbPress ↖
  • BuddyPress ↖
WordPress.org
WordPress.org

ئۇيغۇرچە

  • Visit our X (formerly Twitter) account
  • Bluesky ھېساباتىمىزنى زىيارەت قىلىڭ
  • Visit our Mastodon account
  • Threads ھېساباتىمىزنى زىيارەت قىلىڭ
  • Facebook بېتىمىزنى زىيارەت قىلىڭ
  • Instagram ھېساباتىمىزنى زىيارەت قىلىڭ
  • LinkedIn ھېساباتىمىزنى زىيارەت قىلىڭ
  • TikTok ھېساباتىمىزنى زىيارەت قىلىڭ
  • YouTube قانىلىمىزنى زىيارەت قىلىڭ
  • Tumblr ھېساباتىمىزنى زىيارەت قىلىڭ
كود شېئىرغا ئوخشايدۇ.
The WordPress® trademark is the intellectual property of the WordPress Foundation.