Title: [BUG] PLugin forces session to expire
Last modified: August 30, 2016

---

# [BUG] PLugin forces session to expire

 *  [dejudicibus](https://wordpress.org/support/users/dejudicibus/)
 * (@dejudicibus)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/)
 * There is a serious bug in this plug-in. When I activate it, the session continuously
   expires and I am forced to continuously login again.
 * Please, note that my site is in a subdomain, that is:
 * [http://subdomain.domain.com](http://subdomain.domain.com)
 * and that Site and WP URLs are the same. I tried several time: if I activate plugin,
   the error occurs, if deactivate the plug-in, the error does NOT occur.
 * [https://wordpress.org/plugins/wordpress-popup/](https://wordpress.org/plugins/wordpress-popup/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/page/2/?output_format=md)

 *  Thread Starter [dejudicibus](https://wordpress.org/support/users/dejudicibus/)
 * (@dejudicibus)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/#post-6308443)
 * I made some other test and I had the confirmation that WordPress Popup is responsible
   for the problem. As I activate it, the session continuously expires whatever 
   action I do. As I deactivate it, the problem disappear.
 * Furthermore, custom CSS seems not to work for subtitle. Just consider that
 * `#popup .wdpu-content p { text-align: justify; }`
 * does not work, but
 * `.wdpu-0 .wdpu-content p { text-align: justify; }`
 * does, whereas
 * `.wdpu-0 .wpdu-subtitle { font-size: 16px ; }`
 * does NOT work too.
 *  Plugin Author [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/#post-6308611)
 * Hey there dejudicibus,
 * I’ve tested this on my sandbox site on subdomain and I couldn’t reproduce the
   issue so I’m assuming that this is related to popup conflicting with some other
   plugin/theme. Can you please test for conflicts by using default WordPress theme
   like Twenty Fifteen and deactivating all other plugins as displayed in the following
   flowchart to know which theme/plugin is conflicting if any.
 * [http://premium.wpmudev.org/wp-content/uploads/2013/12/Support-Process-Support-Process.png](http://premium.wpmudev.org/wp-content/uploads/2013/12/Support-Process-Support-Process.png)
 * As for the CSS, I’ve tested this on my end by adding the following:
 *     ```
       .wdpu-4 .wdpu-subtitle {
         font-size: 38px;
       }
       ```
   
 * and everythign worked just fine, see screenshot [http://screencast.com/t/WkfJbCyuYx](http://screencast.com/t/WkfJbCyuYx).
   Where are you adding the CSS and could you please post link to your site where
   you have this popup with the CSS added so I can take a look.
 * Best regards,
    Bojan
 *  Thread Starter [dejudicibus](https://wordpress.org/support/users/dejudicibus/)
 * (@dejudicibus)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/#post-6308612)
 * Bojan, first of all, thank you for reply. I cannot change the theme or make experiments
   on production site, of course. I should duplicate the site to create a sandbox
   site to play with it, and, since I am using a lot of plugins, it may take some
   time before I can test all of them. Before starting an activity that will be 
   quite time-consuming, do you have any hint to help me to understand why a plugin
   conflict should end continuously the WordPress session? Any idea?
 * About CSS, I placed it in the specific textarea of plug-in for custom CSS.
 * The problem does not occur on site, that is, if you look at site, you do not 
   notice the problem. You are aware of the problem if, once the plugin is activated,
   you work on the WordPress administration panels. For example, making changes 
   to popup content, creating a post, and so forth. At the moment, I deactivated
   the plug-in on production site, otherwise I cannot work with it.
 *  Thread Starter [dejudicibus](https://wordpress.org/support/users/dejudicibus/)
 * (@dejudicibus)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/#post-6308614)
 * I am trying to reproduce the problem in a sandbox site. At the moment, I was 
   able to reproduce the CSS problem. Here is what I write in popup:
 * [http://www.dejudicibus.it/images/custom_css.jpg](http://www.dejudicibus.it/images/custom_css.jpg)
 * Preview shows this
 * [http://www.dejudicibus.it/images/popup_preview.jpg](http://www.dejudicibus.it/images/popup_preview.jpg)
 * So, 16px font is NOT applied to subtitle.
 *  [aehageman](https://wordpress.org/support/users/aehageman/)
 * (@aehageman)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/#post-6308644)
 * Just want you to know I had Tooltips
    Version 3.5.9 | By Tomas Zhu: installed.
 * When I attempted to save my customized appearance, I was prompted with a session
   expired login page.
 * Deactivated it and and the issue stopped. Great idea as a plugin, but I can not
   use it as it conflicts to much.
 * I deactivated all plugins.
    started at the top and activated them one by one.
   after each activation I attempted to change the color of the active link in the
   header to any color. changed and saved it at least three times for each plugin.
   As it did not happen every time on the first try but always did on the second
   try. rinse and repeat until I activated Tooltips. after confirmed issue. activated
   ALL other plugins and tested again. no issue, so now I am looking for a replacement
   for Tooltips… hope this helps.
 *  Thread Starter [dejudicibus](https://wordpress.org/support/users/dejudicibus/)
 * (@dejudicibus)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/#post-6308650)
 * I do not use Tooltips. I simply wonder why a plugin (Tooltips, Popup, …) should
   generate such a behaviour. I do not see any reason why those plugins should force
   the end of session. Is that related with a specific WordPress API?
 *  Plugin Author [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/#post-6308664)
 * Hey there dejudicibus,
 * I believe the issue with your CSS is using “#popup” in the selector, I’ve checked
   on my sandbox site and I couldn’t find element with that ID so this is most likely
   the reason your code is not working.
 * Can you please post link to your site where I can see this popup and I’ll try
   to provide CSS and correct selector.
 * Best regards,
    Bojan
 *  Thread Starter [dejudicibus](https://wordpress.org/support/users/dejudicibus/)
 * (@dejudicibus)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/#post-6308669)
 * At the beginning I used #popup because that was stated in the instructions, as
   you can see here:
 * [http://www.dejudicibus.it/images/custom_css.jpg](http://www.dejudicibus.it/images/custom_css.jpg)
 * but later on I used .wdpu-0 instead of #popup, but it does not work. There is
   probably a bug in the plugin if they think that #popup id is set, because it 
   is not, as you correctly stated.
 *  Plugin Author [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/#post-6308680)
 * Hey again dejudicibus,
 * #popup in selector actually works, what it does is actually targets that specific
   popup. Sorry about that I completely missed that one 🙁
 * So to justify the text in the popup please try adding the following:
 *     ```
       #popup .wdpu-msg p {
         text-align: justify;
       }
       ```
   
 * CSS for subtitle font size should work as displayed in your screesnhot:
 *     ```
       #popup .wdpu-subtitle {
         font-size: 11px;
       }
       ```
   
 * If the code for any reason doesn’t work please post link to your site where I
   can see this popup so I can take a look.
 * Best regards,
    Bojan
 *  Thread Starter [dejudicibus](https://wordpress.org/support/users/dejudicibus/)
 * (@dejudicibus)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/#post-6308683)
 * Well, I cannot activate the plugin on the production site because it makes my
   WordPress session continuously expire. Until that problem is fixed, the CSS problem
   is secondary. If I do not solve the expiration problem I cannot use the plugin,
   practically. 🙁
 *  Plugin Author [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/#post-6308685)
 * Hey again dejudicibus,
 * You mentioned that you managed to setup sandbox site and just reproduced the 
   CSS issue there.
 * Did you test for conflicts as instructed above regarding the session expiring
   issue?
 * Best regards,
    Bojan
 *  Thread Starter [dejudicibus](https://wordpress.org/support/users/dejudicibus/)
 * (@dejudicibus)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/#post-6308701)
 * Here is the SANDBOX site URL
 * [http://www.dejudicibus.it/pfdev/?key=69](http://www.dejudicibus.it/pfdev/?key=69)
 * Please, note that you must use the query key=69 to see the popup.
    As you can
   see, the subtitle has the same size of title (it should be half the size).
 * CSS is
 *     ```
       .wpdu-subtitle { font-size: 16px ; }
       .wdpu-content p { text-align: justify; }
       ```
   
 * #popup prefix does not work.
 * In the SANDBOX the expiration problem does not occur, so you are probably right
   when you said that probably is a collision with another plugin or theme, but 
   the problem is that I have plenty of plugins in the production site. It might
   require weeks to test all of them.
 * Do you have any hint about WHY popup plugin and other code together may cause
   session expiration? What kind of code may bias session expiration in WordPress?
 *  Plugin Author [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/#post-6308703)
 * Hey again dejudicibus,
 * For CSS issue this is just an issue with specificity, as you can see in this 
   screenshot [http://screencast.com/t/Wpms8kEdnNc](http://screencast.com/t/Wpms8kEdnNc),
   your subtitle CSS has this selector:
 * `.wdpu-1181 .wdpu-subtitle`
 * So adding just
 * `.wpdu-subtitle`
 * will get override by it. However, adding the same selector in the custom CSS 
   tab should do the trick so please try adding the following:
 *     ```
       .wdpu-1181 .wdpu-subtitle {
         font-size: 16px;
       }
       ```
   
 * As for the session expiration I’ve found the following post that might be useful
   for you, please check it out:
 * [http://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-keeps-logging-out-problem/](http://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-keeps-logging-out-problem/)
 * Hope this helps 🙂
 * Cheers,
    Bojan
 *  Thread Starter [dejudicibus](https://wordpress.org/support/users/dejudicibus/)
 * (@dejudicibus)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/#post-6308705)
 * Hi Bojan,
 * I just tried
 *     ```
       .wdpu-1181 .wpdu-subtitle { font-size: 16px ; }
       .wdpu-1181 .wdpu-content p { text-align: justify; }
       ```
   
 * too, but it does not work. So I inspected code and found that the following CSS
   is generated:
 *     ```
       <style type="text/css">
       /**
        * Style: Simple
        */
        ...
        .wdpu-1181 .wdpu-title,
        .wdpu-1181 .wdpu-subtitle {
           font-size: 22.5px;
           ...
        }
        ...
        .wdpu-1181 .wdpu-subtitle { font-size: 16px; }
        .wdpu-1181 .wdpu-content p { text-align: justify; }
       </style>
       ```
   
 * The last two lines seem to be ignored anyway. I do not understand why. Maybe 
   because they are at bottom, after [@media](https://wordpress.org/support/users/media/){…}
   block? Have you tried to generate a separate block like this
 *     ```
       <style type="text/css">
        .wdpu-1181 .wdpu-subtitle { font-size: 16px; }
        .wdpu-1181 .wdpu-content p { text-align: justify; }
       </style>
       ```
   
 * for the custom CSS? Are you sure that custom CSS works in any browser? I use 
   Chrome.
 * May I also suggest you, in a future release, to add id=”wpdu-popup” to your popup?
   It is a minor change that could help, so we could use
 *     ```
       #wpdu-popup .wpdu-subtitle { font-size: 16px ; }
       #wpdu-popup .wdpu-content p { text-align: justify; }
       ```
   
 * that is, what you planned since the beginning according to the instructions below
   the custom CSS textarea. Since there is ONLY one popup at time, it should work.
   The wdpu- prefix will ensure that there would be no conflicts with other ids.
 *  Thread Starter [dejudicibus](https://wordpress.org/support/users/dejudicibus/)
 * (@dejudicibus)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/#post-6308706)
 * Ho Bojan,
 * I know this problem
 * [http://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-keeps-logging-out-problem/](http://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-keeps-logging-out-problem/)
 * but it is not my case. I use the same url in both fields.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/page/2/?output_format=md)

The topic ‘[BUG] PLugin forces session to expire’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popup/assets/icon-256x256.gif?rev=3446944)
 * [Hustle - Email Marketing, Lead Generation, Optins, Popups](https://wordpress.org/plugins/wordpress-popup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popup/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popup/reviews/)

## Tags

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

 * 18 replies
 * 3 participants
 * Last reply from: [aehageman](https://wordpress.org/support/users/aehageman/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/bug-plugin-forces-session-to-expire/page/2/#post-6308774)
 * Status: not resolved