Title: Login Loop Problem
Last modified: November 19, 2017

---

# Login Loop Problem

 *  Resolved [hilmanfajrian](https://wordpress.org/support/users/hilmanfajrian/)
 * (@hilmanfajrian)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/)
 * Hi,
    I desperately need help to fix login/redirect loop on my website that not
   being resolved more than a week. My website is Arkademi.com where the user has
   to login to see the class content. Everytime the user logging in (with user ID
   or social media account), login not succeded. LOGIN button still there. User 
   has to move to another page to succeded and the Login button changed to their
   account.
 * I have uninstalled W3 total cache and disconnected from Cloudflare. Not fixed.
   So I assume the culprit is my server hosting cache. Hosting provider told me 
   they are caching the server and askd me to install Litespeed Cache Plugin. I 
   did what they asked. But the problem persists. Please visit my website above 
   and give a try.
 * Please tell me what exactly my problem is and how to fix it. Thank you.
 * This is my Litespeed setting:
 * GENERAL
    Enable LiteSpeed Cache: ON
 * CACHE
    Cache Logged-in Users: OFF Cache Commenters: ON Cache REST API: ON Cache
   Login Page: ON Cache favicon.ico: ON Cache PHP Resources: ON Cache Mobile: OFF
   Browser Cache: OFF
 * CDN
    Enable CDC: OFF
 * ESI
    Enable ESI: OFF
 * My httaccess
    # BEGIN LSCACHE ## LITESPEED WP CACHE PLUGIN – Do not edit the 
   contents of this block! ## <IfModule LiteSpeed> RewriteEngine on CacheLookup 
   on RewriteRule .* – [E=Cache-Control:no-autoflush] RewriteRule min/\w+\.(css|
   js) – [E=cache-control:no-vary]
 * ### marker CACHE RESOURCE start ###
    RewriteRule wp-content/.*/[^/]*(responsive
   |css|js|dynamic|loader|fonts)\.php – [E=cache-control:max-age=3600] ### marker
   CACHE RESOURCE end ###
 * ### marker FAVICON start ###
    RewriteRule favicon\.ico$ – [E=cache-control:max-
   age=86400] ### marker FAVICON end ###
 * </IfModule>
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this 
   block! ## # END LSCACHE
 * # 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
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flogin-loop-problem%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

1 [2](https://wordpress.org/support/topic/login-loop-problem/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/login-loop-problem/page/2/?output_format=md)

 *  Plugin Support [LiteSpeed Lisa](https://wordpress.org/support/users/lclarke/)
 * (@lclarke)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/#post-9701837)
 * Hi, hilmanfajrian.
 * I’m sorry you’re having difficulty.
 * Have you tried it with **Cache Login Page** set to `OFF`?
 * I’m not sure if you’re going to find the answer in the plugin, if you had the
   problem before you installed it. If my above suggestion doesn’t work, it would
   be great if you could [create a ticket](https://store.litespeedtech.com/store/clientarea.php)(
   or send email to `bug@litespeedtech.com`) so we can troubleshoot at the server
   level, if necessary. Thanks!
 *  Thread Starter [hilmanfajrian](https://wordpress.org/support/users/hilmanfajrian/)
 * (@hilmanfajrian)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/#post-9702209)
 * Hi Lisa,
    Thanks for caring.
 * Login loop problem is now resolved. Here is my setting:
    – General > Enable Litespeed
   Cache: DISABLE – Cache > Cache Logged-in users: OFF – Cache > Browser Cache: 
   OFF – Exclude > Do not Cache Roles: Instructor, Student
 * That’s all setting related to cache. I leave optimization setting to default.
 *  Plugin Support [LiteSpeed Lisa](https://wordpress.org/support/users/lclarke/)
 * (@lclarke)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/#post-9702538)
 * (deleted)
    -  This reply was modified 8 years, 4 months ago by [LiteSpeed Lisa](https://wordpress.org/support/users/lclarke/).
 *  Plugin Support [LiteSpeed Lisa](https://wordpress.org/support/users/lclarke/)
 * (@lclarke)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/#post-9702595)
 * Oh, please disregard my previous response. I misunderstood what you were saying.
 * The reason it works now is because you completely turned off the cache.
 * If you still want your pages to be cached, then you need to set **General > Enable
   LiteSpeed Cache** to `Enable`.
 * That will probably re-introduce the issue. Did you try what I suggested earlier?
   Set **Cache > Cache Login Page** to `OFF` and let me know what happens.
 *  Thread Starter [hilmanfajrian](https://wordpress.org/support/users/hilmanfajrian/)
 * (@hilmanfajrian)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/#post-9703150)
 * Yes. Login loop is fixed because of this setting:
    General > Enable LiteSpeed
   Cache > Disable
 * I think that setting is sending command to my Litespeed hosting server that caching
   by default not to cache my website. Is that right?
 * I won’t enable it because it creates the login loop on my website.
 * Yes, I did Cache > Cache Login Page > Off. But it didn’t work because (I think)
   the ‘Enable LiteSpeed Cache’ was Enable.
 * Here is my last httaccess that works.
 * # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this
   block! ## <IfModule LiteSpeed> RewriteEngine on CacheLookup on RewriteRule .*–[
   E=Cache-Control:no-autoflush] RewriteRule min/\w+\.(css|js) – [E=cache-control:
   no-vary]
 * </IfModule>
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this 
   block! ## # END LSCACHE # 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
 *  Plugin Support [LiteSpeed Lisa](https://wordpress.org/support/users/lclarke/)
 * (@lclarke)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/#post-9703582)
 * If you do not want to cache your site at all, then yes. You can solve your problem
   by setting **General > Enable LiteSpeed Cache** to `Disable`.
 * If you are happy with that, we can mark this resolved.
 * If you _do_ want to cache your site, and you’d like to figure out why that login
   page is acting the way it does, please let us know, and we’ll try to help.
 *  [arisgast](https://wordpress.org/support/users/arisgast/)
 * (@arisgast)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/#post-9705548)
 * Hello,
 * I have the same issue after update from Version 1.4 to Version 1.6.3.
 * The users where login need to change page to show the correct page content. Otherwise
   they seem that they are not logged in
 * note: We redirect the user in the last page where was before logged in. So we
   haven’t a page to exclude from caching for users that just logged in.
 * Thank you.
    -  This reply was modified 8 years, 4 months ago by [arisgast](https://wordpress.org/support/users/arisgast/).
 *  Thread Starter [hilmanfajrian](https://wordpress.org/support/users/hilmanfajrian/)
 * (@hilmanfajrian)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/#post-9706025)
 * Hi, Lisa.
    Thanks for offering a help. I’d love to.
 * Disabling the cache is raising my load speed. If you can help me to find a way
   out to prevent login loop and cache my site with Litespeed plugin, please tell
   me how make it happens.
 * Thank you.
 *  Plugin Support [LiteSpeed Lisa](https://wordpress.org/support/users/lclarke/)
 * (@lclarke)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/#post-9706204)
 * [@hilmanfajrian](https://wordpress.org/support/users/hilmanfajrian/) and [@arisgast](https://wordpress.org/support/users/arisgast/)
 * Can you both share your environment report? Maybe we’ll find that you have some
   settings or other plugins in common that can point us in the right direction.
 * Go to **LiteSpeed Cache > Environment Report**, and copy the contents of the 
   report here.
 * Thanks!
 *  [arisgast](https://wordpress.org/support/users/arisgast/)
 * (@arisgast)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/#post-9706264)
 * Hello Lisa,
 * i cant share my Environment Report in public but I have a open ticket (#820789)
 * I will attached my report there if you want.
 * Thank you.
 *  Plugin Support [LiteSpeed Lisa](https://wordpress.org/support/users/lclarke/)
 * (@lclarke)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/#post-9706350)
 * Thanks.
 * We’ll continue discussing your issue on the ticket then 🙂
 *  Thread Starter [hilmanfajrian](https://wordpress.org/support/users/hilmanfajrian/)
 * (@hilmanfajrian)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/#post-9706440)
 * Server Variables
    SERVER_SOFTWARE = LiteSpeed DOCUMENT_ROOT = /var/www/vhosts/
   arkademi.com/httpdocs X-LSCACHE = 1 LSWCP_TAG_PREFIX = 3b0
 * LSCache Plugin Options
    version = 1.6.3 radio_select = 0 purge_upgrade = true
   cache_priv = false cache_commenter = true cache_rest = true cache_page_login 
   = true timed_urls = timed_urls_time = cache_favicon = true cache_resources = 
   true mobileview_enabled = false mobileview_rules = cache_uri_priv = cache_browser
   = false cache_browser_ttl = 2592000 login_cookie = check_advancedcache = true
   debug = 0 admin_ips = 127.0.0.1 debug_level = false log_file_size = 30 heartbeat
   = true debug_cookie = false collaps_qs = false log_filters = false log_ignore_filters
   = gettext gettext_with_context get_the_terms get_term log_ignore_part_filters
   = i18n locale settings option public_ttl = 604800 private_ttl = 1800 front_page_ttl
   = 604800 feed_ttl = 0 403_ttl = 3600 404_ttl = 3600 500_ttl = 3600 purge_by_post
   = A.F.H.M.PGS.PGSRP.PT.T excludes_uri = excludes_qs = excludes_cat = excludes_tag
   = css_minify = false css_combine = false css_combined_priority = false css_http2
   = false css_exclude = js_minify = false js_combine = false js_combined_priority
   = false js_http2 = false js_exclude = optimize_ttl = 604800 html_minify = false
   optm_qs_rm = false optm_ggfonts_rm = false optm_css_async = false optm_js_defer
   = false optm_emoji_rm = false optm_excludes = optm_exclude_jquery = true optm_ggfonts_async
   = false cdn = false cdn_ori = cdn_url = cdn_inc_img = false cdn_inc_css = false
   cdn_inc_js = false cdn_filetype = .aac .css .eot .gif .jpeg .js .jpg .less .mp3.
   mp4 .ogg .otf .pdf .png .svg .ttf .woff cdn_exclude = cdn_remote_jquery = 0 media_img_lazy
   = false media_img_lazy_placeholder = media_iframe_lazy = false media_img_optm_cron_off
   = false media_img_webp = false media_img_webp_only = false hash = pAq1SHQbXGq8HQPWLLAZj4vZA1AkQAkU
   nocache_cookies = nocache_useragents = crawler_include_posts = true crawler_include_pages
   = true crawler_include_cats = true crawler_include_tags = true crawler_excludes_cpt
   = crawler_order_links = date_desc crawler_usleep = 500 crawler_run_duration =
   400 crawler_run_interval = 600 crawler_crawl_interval = 302400 crawler_threads
   = 3 crawler_load_limit = 1 crawler_domain_ip = crawler_custom_sitemap = crawler_cron_active
   = false esi_enabled = false esi_cached_admbar = true esi_cached_commform = true
 * Wordpress Specific Extras
    wordpress version = 4.9 locale = en_US active theme
   = WPLMS active plugins = array ( 0 => ‘LayerSlider/layerslider.php’, 1 => ‘all-
   in-one-seo-pack/all_in_one_seo_pack.php’, 2 => ‘bbpress/bbpress.php’, 3 => ‘bp-
   social-connect/bp_social_connect.php’, 4 => ‘buddypress/bp-loader.php’, 5 => ‘
   co-authors-plus/co-authors-plus.php’, 6 => ‘dk-pricr-responsive-pricing-table/
   rpt.php’, 7 => ‘drop-shadow-boxes/dropshadowboxes.php’, 8 => ‘duplicate-page/
   duplicatepage.php’, 9 => ‘js_composer/js_composer.php’, 10 => ‘litespeed-cache/
   litespeed-cache.php’, 11 => ‘loco-translate/loco.php’, 12 => ‘tablepress/tablepress.
   php’, 13 => ‘vibe-course-module/loader.php’, 14 => ‘vibe-customtypes/vibe-customtypes.
   php’, 15 => ‘vibe-shortcodes/vibe-shortcodes.php’, 16 => ‘wp-mail-smtp/wp_mail_smtp.
   php’, 17 => ‘wp-quiz/wp-quiz.php’, 18 => ‘wp-smushit/wp-smush.php’, 19 => ‘wplms-
   coauthors-plus/wplms-coauthor-plus.php’, 20 => ‘wplms-customizer/wplms-customizer.
   php’, 21 => ‘wplms-dashboard/wplms-dashboard.php’, 22 => ‘wplms-front-end/wplms-
   front-end.php’, )
 * /var/www/vhosts/arkademi.com/httpdocs/.htaccess contents:
    # BEGIN LSCACHE ##
   LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ## <IfModule
   LiteSpeed> RewriteEngine on CacheLookup on RewriteRule .* – [E=Cache-Control:
   no-autoflush] RewriteRule min/\w+\.(css|js) – [E=cache-control:no-vary]
 * </IfModule>
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this 
   block! ## # END LSCACHE # 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
 *  Plugin Support [LiteSpeed Lisa](https://wordpress.org/support/users/lclarke/)
 * (@lclarke)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/#post-9706501)
 * Thank you! I’ll compare these two and see if anything stands out.
 *  [jlahm](https://wordpress.org/support/users/jlahm/)
 * (@jlahm)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/#post-9711186)
 * I have been trying to figure out a very similar problem with my home page. It
   has a login box that is changed to a “Welcome” message after the user logs in.
   I have managed to get it to work by changing 2 settings on the Cache tab. First,
   I set Cache Login Page to Off. Second, under Private Cached URIs I enter a single
   line of “/$”. This unfortunately means my home page isn’t publicly cached, but
   it seems like this combination works most consistently.
 *  [arisgast](https://wordpress.org/support/users/arisgast/)
 * (@arisgast)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/#post-9725441)
 * Hello,
 * Update to v1.6.4 didn’t resolve my issue.
 * Regards

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

1 [2](https://wordpress.org/support/topic/login-loop-problem/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/login-loop-problem/page/2/?output_format=md)

The topic ‘Login Loop Problem’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

## Tags

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

 * 16 replies
 * 5 participants
 * Last reply from: [Hai Zheng⚡](https://wordpress.org/support/users/hailite/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/login-loop-problem/page/2/#post-9741035)
 * Status: resolved