Find out what is using PHP sessions in WordPress

As far as I know, WP doesn’t use PHP Sessions, only Native solution (Storing Session data of logged-in users in DB). Perhaps some other additional functionality (plugin/addon/theme) use it?

What you can do is check whats in sessions files. Search for occurrences of keys you found in sessions in your code base. Localize problem and solve it.

There another way around would be to switch sessions to memory (install memcached server and reroute session to be served by memcached)

3.5 Million users per month is 5-6 users per seconds on average. It’s not so much for nginx/php/mysql with WP installed (only heavy SQL queries can be your other bottleneck but it doesn’t sound like the case now).

Leave a Comment