Set Password Cookie Expiry in Divi Password Box

Written by Dan Mossop

The Divi Password Box module lets you style password protected WordPress pages using the Divi Builder. The module builds upon WordPress's password protection, and as such when the user enters the correct password, they will gain access to the page for 10 days. After that they will be required to re-enter the password. Here's how to change the expiry duration of the password cookie.

To change the password cookie expiry length, go to the Divi Password Box settings at:

WP Dashboard > Settings > Divi Password Box

You should then see an option to set the password cookie expiry like so:

You can choose between the WordPress default of 10 days, expiring the password when the user fully closes their browser, or after a fixed period of time (in seconds).

This option is available in Divi Password Box v1.1.3 upwards.

Note that this is a site-wide setting which modifies the password cookie expiry on all password protected pages.

Cookie Expiry Limit

According to the specifications, browsers must cap the cookie expiry limit at 400 days (34560000 seconds). It is recommended that browsers use this 400 day duration as the limit (and Chrome, for example, does).. So an expiry of one year (31536000 seconds) should generally work fine.

 

Secure Your Content with Style!

Upgrade your password-protected pages with Divi Password Box! This module allows you to customize and enhance the password entry experience, ensuring your protected content looks fantastic and remains secure.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.

We may earn a commission when you visit links on our website.

Latest Posts

Set a Custom Counter Duration in the Divi Number Counter Module

Adjusting the duration of the number animation in the Divi Number Counter module allows you to control the speed at which numbers count up, providing a smoother or more dramatic effect to suit your design preferences. This feature helps you better capture user...

Replace Pagination Numbers with Icons in Divi Gallery Module

Transforming the pagination in the Divi Gallery module by replacing default page numbers with an icon creates a modern, visually appealing navigation experience for gallery viewers. This customization can enhance site aesthetics and improve accessibility by providing...

Change Divi Gallery Module Slider Arrow Size

Adjusting the size of slider arrows in the Divi Gallery module can help improve site navigation, enhance visual consistency, or better match your site’s design preferences. Whether you want to make navigation elements more prominent or integrate them seamlessly with...

Change Divi Gallery Module Slider Arrow Color

Customizing the appearance of your Divi Gallery module can enhance both the aesthetics and usability of your site. Changing the slider arrow color in the Gallery module slider layout allows you to ensure the navigation controls are clearly visible and match your...

Change Slider Arrow Icons in the Divi Gallery Module Slider Layout

Customizing the slider arrows in the Divi Gallery module slider layout allows you to enhance the visual appeal and user experience of your image galleries by aligning navigation icons with your website’s design style. This can help make galleries more intuitive and...

Random Posts