MyBB Community Forums
[How To?] MyBB_Session Table its too big - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] MyBB_Session Table its too big (/thread-235233.html)



MyBB_Session Table its too big - DiegoPino - 2022-03-18

Hi Community...

i am doit a backup from MyBB but MyBB_Session Table its too big (1.7 Gigas) Huh

[Image: mybb-session.jpg]

I wanted to ask, how to optimize the table?
Why does the size increase so much?

Can I purge the table?

I really wanted to ask ¿why the size of this table is increasing so much and if it is wise to purge?


Thanks in advance for your support


RE: MyBB_Session Table its too big - HLFadmin - 2022-03-18

There's a task dailycleanup.php which is supposed to clean out sessions older than 24 hours.
Make sure it's enabled, and run it, then check database again.
AdminCP / Tools and Maintenance / Task Manager /Dailycleanup

If your theme does not include this line in footer template, then tasks won't run automatically.
<!-- The following piece of code allows MyBB to run scheduled tasks. DO NOT REMOVE -->{$task_image}<!-- End task image code -->



RE: MyBB_Session Table its too big - nixer55 - 2022-03-18

That's pretty big, how many records and what's the oldest?  Is the Daily Cleanup task enabled and active?

In my experience, it's OK to flush a sessions table, but not drop - you need it.  We have an inactive task which will empty the sessions table left over from when it was type memory and prone to filling.  Table is InnoDB now.  Users couldn't login with a full sessions table. Dodgy


RE: MyBB_Session Table its too big - DiegoPino - 2022-03-19

Thank you nixer55 and HLFadmin for,your feedbacks  My

Now setting the cleand up the table via task manager.  Hope can fix that.

I am not going to delete the table, but I want to optimize and improve the performance in that part with mybb software.

Thank you very much +1 for your feedbacks  Cool