# How to obtain cookies for a user's session to open a web view with the user's context?

**URL:** https://forum.shopware.com/t/how-to-obtain-cookies-for-a-users-session-to-open-a-web-view-with-the-users-context/104302
**Category:** Shopware 6 (English)
**Created:** [17. Juni 2024 um 09:49 UTC](https://forum.shopware.com/t/how-to-obtain-cookies-for-a-users-session-to-open-a-web-view-with-the-users-context/104302 "2024-06-17T09:49:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![serhat-poq](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@serhat-poq](https://forum.shopware.com/u/serhat-poq)
#### Post date: [17. Juni 2024 um 09:49 UTC](https://forum.shopware.com/t/how-to-obtain-cookies-for-a-users-session-to-open-a-web-view-with-the-users-context/104302/1 "2024-06-17T09:49:38Z")

</div>

Hi, I’m working to understand how I can open a web view in a native mobile app with a user’s context (logged in state, cart items etc).

Once I make calls to API to, say, add an item to a user’s cart, is there an API call that I can make to obtain cookies for this user to associate to a web view and navigate to the cart page so the web view opens with the user’s items in the cart?

Thanks!
