<@U04UQ68083H> when using Ory Network, can I custo...
# ory-copilot
s
@chilly-king-10285 when using Ory Network, can I customize the name of the session cookie that gets created?
c
A message from kapa.ai
Yes, you can customize the name of the session cookie when using Ory Network. This can be done by modifying the Ory Kratos configuration. Here is an example of how you can change the cookie name:
Copy code
yaml session:     cookie:       name: your_cookie_name
Replace
your_cookie_name
with the name you want to use for your session cookie. Please note that this configuration should be placed in your Ory Kratos configuration file (
path/to/kratos/config.yml
). [Source](https://www.ory.sh/docs/kratos/guides/configuring-cookies#session-cookies)
s
@chilly-king-10285 I tried this, but when I login after applying that config change I still get a cookie in my browser named
ory_session_elatedgermainmqahlsvoha
c
A message from kapa.ai
It seems like the cookie name you're seeing (
ory_session_elatedgermainmqahlsvoha
) is not the one you set in your configuration. This could be due to a few reasons: 1. The configuration changes might not have been applied correctly. Ensure that you have restarted your Ory Kratos instance after making the changes to the configuration file. 2. There might be an issue with the configuration file itself. Ensure that the file is correctly formatted and the cookie name is properly set under the
session
and
cookie
keys. 3. The cookie you're seeing might be from a previous session. Try clearing your cookies and logging in again to see if the new cookie name is applied. If you're still facing issues, consider reaching out to the Ory community [chat](https://slack.ory.sh/) or start a [discussion](https://github.com/ory/kratos/discussions) for more help. [Source](https://www.ory.sh/docs/kratos/guides/configuring-cookies#session-cookies)
s
@chilly-king-10285 I checked all those things except that its running as Ory Network so I don't know how to force a restart of Kratos for the instance
c
A message from kapa.ai
I see, if you're using Ory Network, the management of the Ory Kratos instance is handled by the Ory team and you won't have direct control over restarting the service. In this case, I would recommend reaching out to the Ory support team for assistance. They can help ensure your configuration changes are correctly applied and the service is restarted if necessary. You can contact them through the [Ory Community Slack](https://slack.ory.sh/) or by creating a [GitHub issue](https://github.com/ory/kratos/issues) in the Ory Kratos repository. Please note that when using Ory Network, it's important to not submit any personally identifiable information in requests made with this project. [Source](https://www.ory.sh/docs/getting-started/integrate-auth/go#test-your-application)