Title: Auto logout problem
Last modified: December 5, 2019

---

# Auto logout problem

 *  Resolved [agsachdev](https://wordpress.org/support/users/agsachdev/)
 * (@agsachdev)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/auto-logout-problem/)
 * Hi,
 * I installed Advanced Forms Pro
    and i bypass with parameter and i submit any 
   form then the auto-logout user.
    -  This topic was modified 6 years, 5 months ago by [agsachdev](https://wordpress.org/support/users/agsachdev/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fauto-logout-problem%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Ales](https://wordpress.org/support/users/alesmal/)
 * (@alesmal)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/auto-logout-problem/#post-12208040)
 * Hi, basically all ajax request are blocked by CMP, I would suggest to add ajax
   url to CMP whitelist under CMP Advanced settings:
 * `https://layoffers.com/wp-admin/admin-ajax.php`
 * Ales
    -  This reply was modified 6 years, 5 months ago by [Ales](https://wordpress.org/support/users/alesmal/).
 *  Plugin Author [Ales](https://wordpress.org/support/users/alesmal/)
 * (@alesmal)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/auto-logout-problem/#post-12208043)
 * or http, if you do not have https conifugred.
 * A.
 *  [WP-Henne](https://wordpress.org/support/users/wp-henne/)
 * (@wp-henne)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/auto-logout-problem/#post-12388785)
 * Hello Ales,
 * THX for this, now my bypass works like expected!
 * Regards
    Henry
 *  [WP-Henne](https://wordpress.org/support/users/wp-henne/)
 * (@wp-henne)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/auto-logout-problem/#post-12397526)
 * Hello Ales,
 * regarding this setting: This only works while using WordPress at in his own directory.
   
   For example domain.ltd/wordpress
 * But if I make the page accessible via domain.ltd, the session is lost if I go
   while administrator to the frontend.
 * I make changes using this method:
    – delete .htaccess files under domain.ltd/
   wordpress and domain.ltd – index.php under domain.ltd with this content:
 *     ```
       define( 'WP_USE_THEMES', true );
   
       /** Loads the WordPress Environment and Template */
       require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' ) ;
       ```
   
 * – In WordPress, change the path under Settings-General (second line to domain.
   ltd) and rewrite the permalinks, which will write a new .htaccess under domain.
   ltd.
 * The side is over https and WPS Hide Login to change the login.
 * This is the .htaccess under domain.ltd
 *     ```
       <IfModule mod_rewrite.c>
         RewriteEngine On
       	RewriteCond %{HTTPS} off
       	RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
       </IfModule>
   
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
       ```
   
 * At advanced setting under Custom Login URL is the same from WP Hide Login.
 * And custom header script I’ve tried domain.tld/wp-admin/admin-ajax.php and domain.
   tld/wordpress/wp-admin/admin-ajax.php
 * Any hint?
    THX Henry

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

The topic ‘Auto logout problem’ is closed to new replies.

 * ![](https://ps.w.org/cmp-coming-soon-maintenance/assets/icon-256x256.png?rev=
   2393184)
 * [CMP - Coming Soon & Maintenance Plugin by NiteoThemes](https://wordpress.org/plugins/cmp-coming-soon-maintenance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cmp-coming-soon-maintenance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/)
 * [Active Topics](https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [WP-Henne](https://wordpress.org/support/users/wp-henne/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/auto-logout-problem/#post-12397526)
 * Status: resolved