Title: unexpected session end
Last modified: March 7, 2018

---

# unexpected session end

 *  [quadlayers](https://wordpress.org/support/users/quadlayers/)
 * (@quadlayers)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/unexpected-session-end/)
 * Hello mate
 * I really love this plugin!
 * This is all i’ve been looking for
 * But i have an issue with the session time, the session is automatically ended
   sometimes, when i make a change and the setting refresh the site
 * [https://snag.gy/XUneGA.jpg](https://snag.gy/XUneGA.jpg)
 * Regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funexpected-session-end%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Emran Ahmed](https://wordpress.org/support/users/emranahmed/)
 * (@emranahmed)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/unexpected-session-end/#post-10047764)
 * Some customizer settings need more capabilities. You can use customizer_preview_user_capabilities
   filter to add your desire capabilities which cause logged out.
 * Here is code: [https://github.com/EmranAhmed/customizer-preview-for-theme-demo/blob/66651b7d57f27929397cdcde6d557cdbb3665233/customizer-preview-for-theme-demo.php#L374](https://github.com/EmranAhmed/customizer-preview-for-theme-demo/blob/66651b7d57f27929397cdcde6d557cdbb3665233/customizer-preview-for-theme-demo.php#L374)
 * Thank you
 *  Plugin Author [Emran Ahmed](https://wordpress.org/support/users/emranahmed/)
 * (@emranahmed)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/unexpected-session-end/#post-10047773)
 * I checked your site but its worked fine. Could you check it on incognito browser
   or clear cache?
 *  Thread Starter [quadlayers](https://wordpress.org/support/users/quadlayers/)
 * (@quadlayers)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/unexpected-session-end/#post-10049421)
 * Hello Emran, yes i get the first logged out on chrome incognito browser
 * The i switch to normal browser and get the same result
 * All settings are ‘capability’ => ‘edit_theme_options’,
 *  $wp_customize->add_setting( ‘et_divi[tablet_header_font_size]’, array(
    ‘default’
   => et_get_option( ‘body_header_size’, ’30’ ), ‘type’ => ‘option’, ‘capability’
   => ‘edit_theme_options’, ‘transport’ => ‘postMessage’, ‘sanitize_callback’ =>‘
   absint’, ) );

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

The topic ‘unexpected session end’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/customizer-preview-for-theme-demo.
   svg)
 * [Customizer Preview for Theme Demo](https://wordpress.org/plugins/customizer-preview-for-theme-demo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/customizer-preview-for-theme-demo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/customizer-preview-for-theme-demo/)
 * [Active Topics](https://wordpress.org/support/plugin/customizer-preview-for-theme-demo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/customizer-preview-for-theme-demo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/customizer-preview-for-theme-demo/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [quadlayers](https://wordpress.org/support/users/quadlayers/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/unexpected-session-end/#post-10049421)
 * Status: not resolved