# How to create a cookie after handling event in app extension?

**URL:** <https://forum.shopware.com/t/how-to-create-a-cookie-after-handling-event-in-app-extension/102893>\
**Category:** Shopware 6 (English)\
**Created:** [9. Februar 2024 um 09:56 UTC](https://forum.shopware.com/t/how-to-create-a-cookie-after-handling-event-in-app-extension/102893 "2024-02-09T09:56:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![integrations1](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/integrations1/32/20996_2.png) [@integrations1](https://forum.shopware.com/u/integrations1)\
**Post date:** [9. Februar 2024 um 09:56 UTC](https://forum.shopware.com/t/how-to-create-a-cookie-after-handling-event-in-app-extension/102893/1 "2024-02-09T09:56:55Z")

</div>

Hello,  
I try to create an app (app extension not plugin extension) within Shopware 6. My goal is to handle customer (frontstore) registration/login action via webhook and based on response set cookie to Shopware storefront.  
Following the documentation my app needs to share an endpoint and register it in manifest.xml file - which I am already done.

Next my app handle the event and response with some data which I need to save in cookie in storefront of the shop.  
How I can handle this?
