# Katalon is logging me out

**URL:** <https://forum.katalon.com/t/katalon-is-logging-me-out/43504>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [May 15, 2020, 2:03am UTC](https://forum.katalon.com/t/katalon-is-logging-me-out/43504 "2020-05-15T02:03:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shadrack.bernard](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@shadrack.bernard](https://forum.katalon.com/u/shadrack.bernard)\
**Post date:** [May 15, 2020, 2:03am UTC](https://forum.katalon.com/t/katalon-is-logging-me-out/43504/1 "2020-05-15T02:03:42Z")

</div>

I am using Katalon to test a website that requires login.  
After I login using Katalon, when I navigate around the website, I am quickly logged out. The same happens if I use the “Navigate to Url” keyword.  
I have the same problem both when I’m running an automated test, and also if I’m navigating the site manually using Spy Web. I have the problem with all browsers, when they’re controled by Katalon.  
However, if i browse to the site using a browser normally (i.e. not controlled by Katalon), my session stays logged in when I navigate around.  
Does anyone have an idea why this is happening?  
Many Thanks!

---

<div class="post-metadata">

**Author:** ![shadrack.bernard](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@shadrack.bernard](https://forum.katalon.com/u/shadrack.bernard)\
**Post date:** [May 15, 2020, 12:52pm UTC](https://forum.katalon.com/t/katalon-is-logging-me-out/43504/2 "2020-05-15T12:52:22Z")

</div>

I still don’t know why it’s happening, but I’ve found a workaround.  
If i login a second time, after I get logged out, I stay logged in as I navigate around the website.  
Hope this helps someone!

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [May 15, 2020, 12:56pm UTC](https://forum.katalon.com/t/katalon-is-logging-me-out/43504/3 "2020-05-15T12:56:13Z")

</div>

It sounds like you’re losing your session the first time around. Is there anything in your test code that calls `WebUI.deleteAllCookies()`?

Sorry, but I don’t think your workaround is an answer even though it may seem like it is.
