Wordpress keeps logging me out when I change nameservers to cloudflare


Whenever I adjust dns to cloudflare my wordpress site starts logging out me from backend. Every 10 or 20 seconds it keeps logging me out and asks for login again and also the website posts goes back to older times. I tried everthing: like purging cache , deleting other caching files plugins but it didnt fix this issue.

Note: When I activate cloudflare (by changing nameservers) my htaccess is ignoring by cloudflare and I dont know what should I do to make it compatible with cloudflare.


Try adding a page rule for example.com/wp-admin to Bypass Cache, Disable Apps, and Disable Performance
I have similar settings for wp-login