Title: Could Native PHP Sessions Plugin Solve Session Timeout Issue?
Last modified: August 31, 2016

---

# Could Native PHP Sessions Plugin Solve Session Timeout Issue?

 *  Resolved [agreda](https://wordpress.org/support/users/agreda/)
 * (@agreda)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/could-native-php-sessions-plugin-solve-session-timeout-issue/)
 * Hi! I discovered your WordPress Native PHP Sessions plugin while researching 
   a persistent, mysterious problem we’ve been having that causes users to be randomly
   and frequently logged out (no matter what we try) with a Session Timeout error.
   Our problem started after migrating our multisite network to a new server. After
   reading about this plugin, I discovered that a number of our plugins use session_start()
   commands. So I have a couple questions…
 * 1. Do you think activating Native PHP Sessions might help address this frequent
   log-out issue we’re having?
 * 2. Is it multisite compatible, and should it be network-activated?
 * 3. I see the plugin stores info in the database. So, if it doesn’t help in our
   case, what tables are created? And in which blog(s) if network-activated?
 * I did read the docs and search for other topics with answers.
 * **Thank you in advance for your help!** I know…bad protocol for so many questions
   in one forum topic, but I’m hoping they might be quickly answered by [@getpantheon](https://wordpress.org/support/users/getpantheon/)
   [@daniel](https://wordpress.org/support/users/daniel/) Bachhuber or another of
   the plugin developers.
 * [https://wordpress.org/plugins/wp-native-php-sessions/](https://wordpress.org/plugins/wp-native-php-sessions/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [Josh Koenig](https://wordpress.org/support/users/outlandish-josh/)
 * (@outlandish-josh)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/could-native-php-sessions-plugin-solve-session-timeout-issue/#post-7020719)
 * Thanks for the inquiry!
 * I cannot say whether the plugin will help, and without someone to go through 
   your code and trace the issue my recommendation would be to avoid installing 
   more code to try and solve the problem. Also, unless you moved to a scaled-out
   environment where there are multiple application servers, it’s unlikely that 
   we’d be in the zone anyway.
 * Our plugin does a very simple but valuable thing: it sets up PHP’s internal session
   handling functions to use the database to share sessions across multiple servers.
   Otherwise PHP will default to using tmp files on the local system.
 * You’re free to use our plugin in a single-server architecture, and might see 
   some benefits if there are a large number of sessions, but I don’t believe it
   will solve the problem based on what you have described.
 *  Thread Starter [agreda](https://wordpress.org/support/users/agreda/)
 * (@agreda)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/could-native-php-sessions-plugin-solve-session-timeout-issue/#post-7020725)
 * **Thank you for the quick feedback Josh! **
 * Could you please address my multisite and db tables questions? In case I do decide
   to give this a try. I’m only still considering it because of the tmp file storage
   issue I read about on your site and here.
 * Thanks again,
 * -Jim
 *  Plugin Contributor [Josh Koenig](https://wordpress.org/support/users/outlandish-josh/)
 * (@outlandish-josh)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/could-native-php-sessions-plugin-solve-session-timeout-issue/#post-7020745)
 * Sorry, it _should_ be fine with Multisite, though we have not tested it extensively.
   I’d definitely network enable it since you’ll want consistency. Having it on 
   for some sites but not others could make for unhelpfully inconsistent behavior.
 * The name of the table is `pantheon_sessions`, which is registered with the schema:
 * [https://github.com/pantheon-systems/wp-native-php-sessions/blob/master/pantheon-sessions.php#L137](https://github.com/pantheon-systems/wp-native-php-sessions/blob/master/pantheon-sessions.php#L137)
 * It could be possible if you have a large number of sessions that you’re hitting
   session issues. Temp files don’t scale especially well. Best of luck!
 *  Thread Starter [agreda](https://wordpress.org/support/users/agreda/)
 * (@agreda)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/could-native-php-sessions-plugin-solve-session-timeout-issue/#post-7020849)
 * Thanks again for the feedback.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Could Native PHP Sessions Plugin Solve Session Timeout Issue?’ is closed
to new replies.

 * ![](https://ps.w.org/wp-native-php-sessions/assets/icon-256x256.png?rev=3411177)
 * [Native PHP Sessions](https://wordpress.org/plugins/wp-native-php-sessions/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-native-php-sessions/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-native-php-sessions/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-native-php-sessions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-native-php-sessions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-native-php-sessions/reviews/)

## Tags

 * [Logout](https://wordpress.org/support/topic-tag/logout/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [session](https://wordpress.org/support/topic-tag/session/)
 * [timeout](https://wordpress.org/support/topic-tag/timeout/)

 * 4 replies
 * 2 participants
 * Last reply from: [agreda](https://wordpress.org/support/users/agreda/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/could-native-php-sessions-plugin-solve-session-timeout-issue/#post-7020849)
 * Status: resolved