Title: Problem with session_start() call
Last modified: January 14, 2019

---

# Problem with session_start() call

 *  Resolved [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/problem-with-session_start-call/)
 * Hello,
 * I am using this plugin along with the WP Session Manager plugin on my site. It
   appears that this plugin is calling session_start() (from _sess_init) before 
   all the plugins have been loaded, which is an issue for the WP Session Manager
   plugin.
 * Would it be possible to delay calling _sess_init until the plugins_loaded action
   is triggered?

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

 *  [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/problem-with-session_start-call/#post-11101631)
 * Hello [@chamois_blanc](https://wordpress.org/support/users/chamois_blanc/)
 * Hope all is well!
 * I’ve tested from my end the WP Session Manager plugin along with the Custom Sidebars
   and can’t see any issues.
 * Would you please run a test for a conflict? Please, temporary deactivate all 
   the plugins besides Custom Sidebars and WP Session Manager and see if there are
   any issues.
 * If all is well, start activating one plugin at a time till you find the one that
   causes this.
 * You can also trying this filter `add_filter( 'wdev_lib-use_session', '__return_false');`
   whch will stop Custom Sidebarsa using sessions.
 * The filter needs to be added in [mu-plugin](https://codex.wordpress.org/Must_Use_Plugins).
 * Hope this helps!
 * Cheers,
    Nastia
 *  Thread Starter [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/problem-with-session_start-call/#post-11102505)
 * I had added the WDEV_USE_SESSION define to wp-config.php and that seemed to work.
   Adding the filter to my functions.php seems to work too.
 * I cannot run a test conflict right now. My site is live. I would have to replicate
   the site and I do not have the time right now.
 * The WP Session Manager developer told me that plugins should avoid calling session_start()
   until the plugins_loaded action is called. Is that true for the Custom Sidebars
   plugin?
 *  [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * (@wpmudev-support6)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/problem-with-session_start-call/#post-11105639)
 * Hello [@chamois_blanc](https://wordpress.org/support/users/chamois_blanc/),
 * hope you’re doing well and don’t mind me chip in here! 🙂
 * I’m glad that you’ve managed to sort this out. As we’re still unable to replicate
   that in a couple of testing sites of ours though, it’d be really helpful if you
   could proceed with the conflict test at some point and let us know your results.
 * Also our developers checked the _session\_start()_ and it seems that it loads
   after the _plugins\_loaded_ action, so this shouldn’t be the source of this case.
 * Thank you,
    Dimitris
 *  [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * (@wpmudev-support6)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/problem-with-session_start-call/#post-11239878)
 * Hello [@chamois_blanc](https://wordpress.org/support/users/chamois_blanc/),
 * it’s been a while since we’ve heard back from you so I’ll mark this as resolved.
   Feel free to post back any updates and we can re-open it. 🙂
 * Thank you,
    Dimitris

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

The topic ‘Problem with session_start() call’ is closed to new replies.

 * ![](https://ps.w.org/custom-sidebars/assets/icon-256x256.png?rev=1414065)
 * [Custom Sidebars - Dynamic Sidebar Classic Widget Area Manager](https://wordpress.org/plugins/custom-sidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-sidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-sidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-sidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-sidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-sidebars/reviews/)

## Tags

 * [session](https://wordpress.org/support/topic-tag/session/)

 * 4 replies
 * 3 participants
 * Last reply from: [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/problem-with-session_start-call/#post-11239878)
 * Status: resolved