Database Backed Sessions

This Article Applies to
OTHER Articles Available

The latest version of Memberium has introduced the option to enable and disable Database Backed Sessions.

This toggle can be found by going to Memberium > Settings > Performance under the Session Management section:

What is a Session?

When a visitor browses your website, there’s a need to remember certain information about them, like their login status or items in a shopping cart. This is done using “sessions”. In essence, a session is like a locker: the visitor gets a key (a cookie), and their data is stored safely inside the locker (on the server). This ensures that only they can access their data with their unique key.

Where is the Session Data Stored?

By default, PHP (the language WordPress is built on) stores this session data in a file on the server. But, just like choosing between different types of lockers, we can choose where to store this data.

File-based Storage (PHP’s Default)

  • Pros: Simple and quick for small websites.
  • Cons: Can be slower for larger sites, potential security issues, and might face issues if the server storage directory can’t be accessed or written to.

Database-backed Storage (Memberium’s Custom Option)

  • Pros: Faster for larger sites, centralized and more secure storage, better compatibility across different server setups.
  • Cons: Might increase database usage.

Should You Use Database-Backed Sessions?

For most Memberium users, storing session data in the database can offer performance and security advantages, especially for larger sites. It’s like choosing a sturdier, more secure locker for your belongings. However, if you’re concerned about database usage or have specific compatibility issues, you might opt for the default file-based storage.

Recommendation: Turn “ON” the Database-Backed Sessions option for better performance and security, unless you have specific reasons not to.

  • Was this Helpful?
  • YesNo
9 ways to add more value to your membership site

Table of Contents

This Article Applies to

Keep Reading

Infusionsoft Username Field

This dropdown selects which fields in your Infusionsoft contact record is used to match the login name to. Currently we only support email fields, and we encourage you to use “Email” as your username. This provides the most reliability and maximum compatibility.

Read More »

Want to get some fresh ideas on how you can improve your membership site or course?

Download our free ebook!

Book a Call

Welcome to Memberium!

We are very excited for you to be part of our family. 

We would love to answer any questions that you have!

Please choose the best time for you to get in a call with us. 

For Technical Support, you can contact us at or Email us at