WordPress’in sizi sürekli yönetici alanınızdan çıkarmasından daha sinir bozucu çok az şey vardır.
Bu, web sitenizde çalışmayı neredeyse imkansız hale getiren yaygın bir WordPress hatasıdır. Son 16 yılı aşkın blog yazarlığımız boyunca bizim de en sevmediğimiz şeylerden biri olmuştur, bu nedenle WordPress’in web sitenizden çıkış yapmanızı engellemenin tüm yollarını aradık.
Bu makalede, WordPress oturum zaman aşımı sorunu olarak da bilinen WordPress oturumu kapatıyor sorununu nasıl çözeceğinizi göstereceğiz.
Uzman İpucu: WordPress hatalarını kendi başınıza düzeltmeye çalışmaktan bıktınız mı? Profesyonellere başvurmanın zamanı gelmiş olabilir. Premium WordPress Destek Hizmetlerimiz, WordPress oturum zaman aşımı sorunu da dahil olmak üzere web sitenizdeki tüm hataları hızla düzeltebilir. Ayrıca, hizmetimiz ihtiyaç duyduğunuz her an 7/24 kullanılabilir.
WordPress Neden Sürekli Oturumu Kapatıyor?
WordPress’in oturumunuzu sürekli kapatmasının birkaç ana nedeni vardır. Ancak en yaygın olarak, sitenize WordPress ayarlarınızdakiyle eşleşmeyen bir URL’den erişmeye çalışıyorsunuzdur.
WordPress web sitenize giriş yaptığınızda, giriş oturumunun kimliğini doğrulamak için tarayıcınızda bir çerez ayarlayacaktır. Çerez, ayarlar menünüzde depolanan WordPress URL’si için ayarlanır.
Site URL’si ve WordPress URL’si eşleşmezse, WordPress oturumun kimliğini doğrulayamaz ve oturumunuz kapatılır.
Bu, WordPress’te çok fazla yönlendirme sorununa da neden olabilir.
Aşağıdaki resimde, ‘WordPress Adresi’ ve ‘Site Adresi’ farklıdır, bu nedenle bir çakışma olacaktır.
Bununla birlikte, WordPress oturumu kapatıyor sorununu nasıl kolayca çözebileceğinizi gösterelim.
WordPress Oturumu Kapatıyor Sorunu Nasıl Çözülür?
Bu oturum açma sorunu için en basit çözüm, ‘Site Adresi’ ve ‘WordPress Adresi’ alanlarında aynı URL’ye sahip olduğunuzdan emin olmaktır.
Bunu yapmak için WordPress yönetici panelinizde Ayarlar ” Genel bölümüne gidin.
Ardından, URL’lerin eşleştiğini iki kez kontrol edin. Her iki alanda da ‘www’ veya ‘www olmayan’ bir URL seçmeniz gerekir.
Teknik olarak konuşmak gerekirse, ‘www’ bir alt alan adının kendisidir. Bu, ‘www’ içeren ve içermeyen URL’lerin aslında iki farklı alan adı olduğu anlamına gelir.
Neyse ki, URL’leri aynı adrese değiştirmek ve güncellemek sorunu çözecektir. Ardından, ‘Değişiklikleri Kaydet’ düğmesine tıkladığınızdan emin olun.
WordPress’e Kod Ekleyerek WordPress Oturumu Kapatıyor Sorununu Giderme
WordPress kontrol panelinize erişemiyorsanız, wp-config.php dosyanızı manuel olarak düzenlemeniz gerekecektir. Bu, web siteniz için önemli WordPress ayarlarını içeren özel bir dosyadır.
Bunu yapmak için FileZilla gibi bir FTP istemcisi veya WordPress hosting hesabı kontrol panelinizdeki dosya yöneticisi uygulamasını kullanabilirsiniz.
FTP kullanımı hakkında daha fazla ayrıntı için lütfen WordPress’e dosya yüklemek için FTP’nin nasıl kullanılacağına ilişkin başlangıç kılavuzumuza bakın.
Ardından, sitenizin kök dizininde wp-config.php dosyasını bulun.
Dosyayı masaüstünüze indirebilir ve Not Defteri gibi tercih ettiğiniz metin düzenleyicisinde açabilirsiniz.
Bundan sonra, aşağıdaki kodu ‘Hepsi bu kadar, düzenlemeyi durdurun! Mutlu yayınlar’:
define('WP_HOME','https://example.com');
define('WP_SITEURL','https://example.com');
URL’de ‘www’ kullanmak istiyorsanız, bunun yerine aşağıdaki kodu kullanabilirsiniz:
define('WP_HOME','https://www.example.com');
define('WP_SITEURL','https://www.example.com');
‘example.com’ URL’sini kendi WordPress blog URL’nizle değiştirdiğinizden emin olun.
Ardından, dosyayı kaydetmeniz ve kök dizininize geri yüklemeniz gerekir. WordPress artık web sitenize giriş yaptığınızda oturumunuzu kapatmayı durdurmalıdır.
Hala aynı oturum kapatma sorununu yaşıyorsanız, WordPress giriş sayfası yenileme ve yeniden yönlendirme sorununu nasıl çözeceğinize ilişkin kılavuzumuza bakın.
WordPress Oturumu Kapatma Hakkında Sıkça Sorulan Sorular
Okurlarımızın WordPress oturumu kapatma hakkında bize sorduğu en yaygın soruların yanıtlarını burada bulabilirsiniz.
WordPress neden sürekli oturumumu kapatıyor?
Çoğu durumda WordPress, web sitenize WordPress ayarlarınızdakiyle eşleşmeyen bir URL’den ulaşmaya çalıştığınız için oturumunuzu kapatır.
WordPress web sitenize her giriş yaptığınızda, giriş oturumunun kimliğini doğrulamak için tarayıcıya bir çerez kaydeder. Çerez, ayarlar menünüzdeki WordPress URL’si için kaydedilir.
Site URL’si ve WordPress URL’si aynı değilse, WordPress oturumun kimliğini doğrulayamaz ve oturumunuz kapatılır.
WordPress’in oturumunuzu kapatması ne kadar sürer?
Varsayılan WordPress oturum açma süresi 48 saat sonra sona erecektir. Ardından, WordPress oturumunuzu kapatır ve tekrar oturum açmanız gerekir.
WordPress giriş ekranında ‘Beni Hatırla’nın yanındaki kutuyu işaretleyerek bu sorunu aşabilirsiniz. Böylece 14 gün boyunca tekrar giriş yapmanız istenmeyecektir.
Umarız bu makale WordPress’in oturum kapatma sorununu nasıl çözeceğinizi öğrenmenize yardımcı olmuştur. Ayrıca ücretsiz bir iş e-posta adresinin nasıl oluşturulacağına ilişkin kılavuzumuza ve en iyi alan adı kayıt şirketleri için uzman seçimlerimize de göz atmak isteyebilirsiniz.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Syed Zaki-ul-Hassan
After reading all these solutions and having applied but the problem was not resolved then I updated my WordPress Version problem solved.
Thanks for Such great Knowledge.
WPBeginner Support
Thanks for sharing what worked for you should someone else run into the same issue
Yönetici
Paresh Koli
I was trying to access the website with www which was causing the issue of logout. Now Visiting the website without www works perfectly.
WPBeginner Support
Glad our guide was able to help
Yönetici
Ibukun
Hi, I have been getting this error whenever I try to logout of my website.
ATTENTION: You need to provide |:| USERNAME: admin |:| PASSWORD: admin |:| to see the actual WordPress Admin Login-Area page. This has to prevent WordPress Bruteforce Attack on your Website. Thank You! — SYS. ADMIN….
Do you know any fix or solutions?
WPBeginner Support
That would be a different error, you likely have a security plugin having issues in which case you would want to follow our guide below:
https://www.wpbeginner.com/beginners-guide/how-to-easily-deactivate-wordpress-plugins/
Yönetici
Goombah
Thanks for this article. I was wondering if this could also be a theme issue, or is being logged out unrelated to that?
WPBeginner Support
While unlikely, if there is an error with your current theme it could cause an issue.
Yönetici
Megan
Both urls are the same, but don’t have www. Should I change that as this solution didn’t work for me. So frustrating when editing a post and then finding out nothing was saved!
WPBeginner Support
With or without www shouldn’t matter, if our recommendation is not working we would recommend checking with your hosting provider to see if they see any issues on their end.
Yönetici
Megan
Thanks, I have contacted her, but haven’t had any response yet. She may not be operating anymore.
It seems to be working again now, I updated some of the plugins.
Andres
My solution was deactivating the Better Search Replace plugin.
WPBeginner Support
Thanks for sharing what worked for you, not every site will have the exact same plugin cause this issue
Yönetici
Esther
This broke my website, and now I can’t log back in.
WPBeginner Support
As long as you set the correct domain this should not break your site unless there was a different underlying issue. For resolving any errors that have started appearing, you would want to go through our troubleshooting guide here:
https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
Yönetici
Håkon Berntsen
Worked like a charm. Interesting article that pointed out an error that I would never thought about myself. The settings was correct, but re-save it forced it to work again.
WPBeginner Support
Glad our recommendation was able to help
Yönetici
Lu
I keep getting disconnected and my URLs match. Any other solutions?
Thanks
WPBeginner Support
You may want to check with your host to see if there are any errors on the hosting end that could be part of the issue
Yönetici
Laura Ingalls Gunn
Hello
My settings match and I’m still having the issue.
I’ve also tried
-different browsers
-clearing cookies
-clearing cache
-deactivating each plugin one by one
Any other solutions would be helpful. Thank you.
WPBeginner Support
Have you deactivated all of the plugins rather than one at a time and swapped themes to ensure it isn’t a conflict through one of those?
Yönetici
Tom Little
I try and follow these instructions but I do not seem to get the same Screen when I visit General Settings as the one shown here (I do not see the dialogue boxes that show Site URLs).
I am not sure if they are somewhere else but it seem to me these instructions are either outdated or I have to go another route. Any suggestions would be greatly appreciated.
WPBeginner Support
If your settings area looks completely different you may be using WordPress.com instead of WordPress.org: https://www.wpbeginner.com/beginners-guide/self-hosted-wordpress-org-vs-free-wordpress-com-infograph/
Yönetici
Ralf
How about multisite? There’s no such place to enter the URL. And then, after logging in many times, the login will eventually “stick”, without changing anything …
WPBeginner Support
You would want to try the wp-config method and that should still work for multisite
Yönetici
Bassey Bassey
It worked for me….Thanks for the post.
WPBeginner Support
Glad it was helpful
Yönetici
Lisa
This did not fix my issue. Are there any other solutions?
Tally Briggs
I cannot even get to that settings page. I’m using safari and have only started having the problem with a site I comment on regularly, and have had no problems with for almost a decade.
Jim
I would try another browser to see if it’s a browser issue.
Amol karde
hi…thanks for sharing this informative article
but i am finding issue in my website when i entered into dashboard i saw network admin and my website name as given when i go into network admin it will logout automatically. Please give me some solution or what i can do for logging into admin network.
Thanking You…!!!
Seaira (really)
Hi: I was using hostgator hosting for about 8 years with many websites. I had no problems installing wp and uploading paid templates in .zip from my computer.
I switched to godaddy hosting and commenced to creating wp-real-estate 7 pro from theme forest. But after trying multiple times to upload the template, I had to give up. First tried uploading direct into the wp installation. Then tried direct into my file manager in CP. it would take about 20 minutes each time and then say : “are you sure you want to do this…and a box saying try again.
site and url are both . I always used just in the past. Being they are the same, I never thought to change them to should I? Also I was signing in at:. I paid someone to help me and they tried signing in at:
and said failed. So I had to change the passcode to get in that url. He has not done anything since and wonder if I should cancel the order and try again after I know why the .zip file won’t load. Maybe you can enlighten me.
WPBeginner Support
Hi Seaira,
Please check out our WordPress troubleshooting tips. It will help you locate the problem.
Yönetici
Marco
I had the same problem, caused by the Chrome extension Wordpress Site Manager. When I turned it off the problem disappear.
Ariful Haque
My site has https in front-end and in the admin panel its only http. Both has www in it. But the site keep logging out. Can this http protocol be a cause?
Dimitrios Charalampidis
I had to change http:// to https:// since I am using an SSL certificate and that solved the issue. The article showed me the correct path… Thanks.
WPBeginner Support
Hey, Dimitrios,
Glad it helped You may also want to subscribe to our YouTube Channel for WordPress video tutorials.
Yönetici
Elena
It worked for me and I learned something new :). Thanks a lot.
WPBeginner Support
Hey Elena,
Glad you found it useful You may also want to subscribe to our YouTube Channel for WordPress video tutorials.
Yönetici
Mukhtar Jafari
It did not work for me.
The URLs are the same and again it gives me the same error.
Any suggestion plz?
PenX
I have same problem, did u find any solution???
Travis S
My settings match and I’m still having the issue. It is horribly frustrating, it happens a couple of times a minute.
I’ve tried
-changing both settings to www
-different browsers
-clearing cookies
-clearing cache
-changing themes
-now working through plugins one by one. The issue goes away if I disable all plugins.
Travis S
My settings match and I’m still having the issue. It is horribly frustrating, it happens a couple of times a minute.
Jonny boy
worked a treat thank you very much!
Kevin Green
Similar to Julie G above I have my wordpress installation in its own directory (to avoid conflict with an existing site in root) as described here
therefore
my wordpress address is
my site address is
The logging out problem is particularly annoying with the Appearance/Themes/Live Preview option which essentially will not work due to continued timeout/logout
Has anyone solved this for this kind of situation?
Kevin Green
I just noticed the site name which I had in ” has gotten lost in translation, it should read:-
my wordpress address is
my site address is
WPBeginner Support
Visit the Settings page and make sure that your WordPress Address and Site Address fields are correct.
Yönetici
Kevin Green
I don’t know what happened with my attempts to quote example urls and the information on how to have wordpress run from a sub-directory but essentially my wordpress installation is in a sub-directory called wordpress & so my urls have to be:
WordPress Address URL http://wordpress.example.com
Site Address URL http://example.com
Is there a fix that solves this situation short of re-installing wordpress in root
Paul Thom
Thank you, worked a treat..
Kaushal pal
Wow….. that’s great……… thank’s…..
Sheila
Hi,
I have the same URL in my Site Address and WordPress Address fields in the WordPress settings. Have never changed these settings.
So what would be causing my issue?
Thanks
Prabhu
Hey thanks a lot. Your solution fixed my website logout issue.
Gerardo
Just one word: THANKS!!!!
i have setting URL without www and all working fine.
i Have a subdomain www, do u think it better setting both url with WWW or without?
Thank u very much
WPBeginner Support
Please take a look at our guide: WWW vs non-WWW – Which which is better for WordPress SEO?
Yönetici
Jamie
I keep having this problem but it’s with HTTPs…. Anyone experienced that?
I have my URL set in the config file. Maybe I should unset it…
Kris
Spent 3 days trying to fix this, then found your article & it worked, thanks!!!
Vienna
I keep being asked to log in on my blog. I checked Settings/General in my admin and do not see W/P address or Site Address.
What am I missing ?
I use my iPad for my blog and checked that cookies are enabled in the iPad Safari.
Is there anything else I should do?
This is a recent problem and I don’t know why it has happened.
Tommy
I swear every time I have a problem with WP, you guys solve it. WP should just redirect here
Thanks as always and keep up the great work.
ray
great topic.. fixed my problem. I cloned the my site to a other server. On the VPS the admin is available on example.com:8080/wp-admin. I changed it and now the admin works like a charm!
Thnks again
Louise Krohn
Thanks for this web site. I am a brand new user of WordPress, so I appreciate having access to your tutorials. I have been working on this web site for a couple of weeks, and until a couple of days ago, I had not seen the “Your session has expired” comment. Both the site address and the WordPress address are the same (and have been since the beginning). So, what else could be causing this problem?
WPBeginner Support
Make sure that your browser settings are allowing the cookies to be stored permanently.
Yönetici
Trixee
Is there a variable in a config file I can update? The above solution doesn’t apply to me.
Julie G.
What if I purposefully have my admin page in a different file for security reasons? For example, my WordPress Address URL is http://example.com/wp and my Site Address URL is http://example.com. Is there a work-around?
John Thom
This solution applies to WordPress without MultiSite? When activating MultiSite WordPress gives the following message:
Server Address:
We recommend you change your siteurl to mydomain.org.uk before enabling the network feature. It will still be possible to visit your site using the www prefix with an address like http://www.mydomain.org.uk but any links will not have the www prefix.
The effect of using www. in WPMS is that accessing http://mydomain.com/sample-page/ redirects users to the hompage, rather than WordPress self-correcting and redirecting to http://www. … … .