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

Last Login Field

The last login field is an optional field in your contact record that can be updated when the user logs in. If you select the default value of “(None)”, then no update will be made. Updating the last login field will consume an API call. If you are expecting heavy traffic and it is not critical, you may want to disable this feature.

Read More »

Theme Compatibility with LearnDash

In general, Memberium is compatible overall with all themes. Some drag and drop themes may disable some functionality, such as Excerpts, however that capability can be recreated within the theme itself manually using shortcodes. When using Memberium with LearnDash, there are some additional restrictions.  There are a variety of themes you can choose from that work well with LearnDash, depending on your needs.

Read More »

Affiliate Leaderboards

For businesses that leverage affiliate sales, leaderboards can be a major component of a powerful part of your affiliate marketing strategy. Creating a visual leaderboard for your affiliates provides a shared resource that encourages your affiliates to compete with each other and increase the effectiveness of the overall campaign. Find out how affiliate leaderboards work with Memberium and how to set one up on your WordPress site.

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