# Invalid session ID when trying to execute the test

**URL:** <https://forum.katalon.com/t/invalid-session-id-when-trying-to-execute-the-test/113707>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [January 10, 2024, 6:11pm UTC](https://forum.katalon.com/t/invalid-session-id-when-trying-to-execute-the-test/113707 "2024-01-10T18:11:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kharitha17](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kharitha17/32/22830_2.png) [@kharitha17](https://forum.katalon.com/u/kharitha17)\
**Post date:** [January 10, 2024, 6:11pm UTC](https://forum.katalon.com/t/invalid-session-id-when-trying-to-execute-the-test/113707/1 "2024-01-10T18:11:59Z")

</div>

Hello all ,  
Need some inputs on how to handle invalid session ID .  
Scenario:step1 : Login with user 1 perform some steps Logout and close browser.  
step2: Open new browser with different URL and continue the test  
Here when I want to test from closing browser and open new browser I am getting Invalid session ID.  
any ideas on how to skip this error  
 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/2/6/26bd6cf9695d20cc96b88d0825e4ae40ca5c68bc.png)  
 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/b/c/bcbf5cfdd0b2936c0636a9aca37f102cec2b2204.png)

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [January 12, 2024, 11:11am UTC](https://forum.katalon.com/t/invalid-session-id-when-trying-to-execute-the-test/113707/2 "2024-01-12T11:11:41Z")

</div>

Hi,

Which version are you using?

---

<div class="post-metadata">

**Author:** ![kharitha17](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kharitha17/32/22830_2.png) [@kharitha17](https://forum.katalon.com/u/kharitha17)\
**Post date:** [January 12, 2024, 5:44pm UTC](https://forum.katalon.com/t/invalid-session-id-when-trying-to-execute-the-test/113707/3 "2024-01-12T17:44:40Z")

</div>

Hi @Elly_Tran ,  
I am using 8.6.5  
Thank you!

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [January 14, 2024, 2:33pm UTC](https://forum.katalon.com/t/invalid-session-id-when-trying-to-execute-the-test/113707/4 "2024-01-14T14:33:55Z")

</div>

Will you be able to upgrade it to the latest version?

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [January 14, 2024, 5:37pm UTC](https://forum.katalon.com/t/invalid-session-id-when-trying-to-execute-the-test/113707/5 "2024-01-14T17:37:20Z")

</div>

I can’t see what upgrading the version will do except put you into a more “Pay for Features” KS application. If you are already a paying KS user, then you should put in a response to Katalon Technical Team instead of this forum.

How about instead of using the “openBrowser()” statement (with empty parameters), you try the other form of the statement?  
`WebUI.openBrowser("http://forum.katalon.com/")`

Edit: or

> [@How to Test Two Browsers using WebDriver](http://forum.katalon.com/t/how-to-test-two-browsers-using-webdriver/51133/2):
>
> Try this code: import org.openqa.selenium.WebDriver import org.openqa.selenium.chrome.ChromeDriver import com.kms.katalon.core.webui.driver.DriverFactory import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI System.setProperty("webdriver.chrome.driver", DriverFactory.getChromeDriverPath()) WebDriver driver1 = new ChromeDriver() WebDriver driver2 = new ChromeDriver() // first browser DriverFactory.changeWebDriver(driver1) WebUI.navigateToUrl("https://www.duckduckgo.com") …
