MyBB Documentation

Cookie Settings

MyBB 1.6 Series EOL – Important Notice

The MyBB 1.6 series reached End-Of-Life on October 1, 2015. The MyBB Group strongly encourages all communities running MyBB 1.6 to upgrade as soon as possible to avoid the possibility of future bugs and/or vulnerabilities. Find out more →

The 1.6 Documentation is no longer maintained and some information may be outdated.

Problems with cookies? If users of your forum are experiencing problems such as not being able to login, chances are your cookie settings are not set correctly. Please see the examples to find your cookie settings, then change them in Admin CP > Configuration > Settings > General Configuration. The rest of this page is a general description of the usage of cookies in MyBB.

Contents

Cookies are important in MyBB to identify and to verify logged-in users, and to store inline-moderation selections, among other bits of data.

Cookies are important in MyBB to identify and verify logged-in users, and store inline-moderation selections. Incorrect cookie settings are the leading cause of login/logout problems on forums. If you or your users are having problems logging into the Frontend of your board, see if the cookie settings are the culprit before posting your support request on the forum.

MyBB has three inherent settings related to cookies:

  • Cookie Domain
  • Cookie Path
  • Cookie Prefix

This is the domain or subdomain that contains your forum. Usually a period/dot (".") is placed in front of this domain/subdomain in order to include all of its subdomains

This is the path from the root of your domain to your forum directory. The starting slash and ending slash should be included.

This is a prefix to all cookies used by your forum, to further prevent any conflicts with other installations of MyBB on the same domain or conflicts with other softwares.

Forum URL Cookie Domain Cookie Path
http://www.myforum.com/ .myforum.com /
http://www.mysite.com/myforum/ .mysite.com /myforum/
http://coolforum.coolsite.com/wow/ .coolforum.coolsite.com -OR- .coolsite.com /wow/

The following is a list of the cookies that MyBB sets, and a note about each one:

Stores the number of ACP login attempts a user has had.

Stores the current admin's Admin Session ID.

Stores the number of login attempts a user has had.

The mybb cookie is actually an array of cookies:

This cookie stores the last time of visit in the UNIX timestamp format.

This cookie stores the last time that a forum page has been loaded, in the UNIX timestamp format.

This cookie stores the login information for the Frontend, and is set when a user logs in, and is removed when the user logs out. The UID and the login key are stored in this cookie.

This cookie keeps track of which categories and boxes have been collapsed (as opposed to being expanded by default).

There are two kinds of inline moderating cookies: forum and thread and they are named as follows:

  • inlinemod_forumfid
  • inlinemod_threadtid

fid is replaced with the forum ID and tid is replaced with the thread ID.

The contents are a pipe-delimited and pipe-enclosed list of thread IDs or post IDs which have been checked for inline moderation.

The current user's Session ID.

MyBB Documentation
Front End Index Page - Portal - Forum Display - Thread Display - Posting Threads and Replies - Searching - User CP - Member Profile - Private Messages - Calendar - Member List - Help Docs - Who Is Online - Lite (Archive) Mode - Forum Team - Statistics - RSS Syndication - Miscellaneous
Moderation Standard Thread Moderation - Inline Thread Moderation - Inline Post Moderation - Warning System
Mod CP Home - Forums and Posts - Users
Admin CP Home - Configuration - Forums & Posts - Users & Groups - Templates & Style - Tools & Maintenance
Templates & Themes Images - Postbit - Templates - Themes
Developer Database Methods - Database Tables
Miscellaneous Cookies - UTF8 Setup - Default Settings

Edit this page on GitHub