<@U04UQ68083H> - Configuration key `session.cookie...
# ory-copilot
b
@chilly-king-10285 - Configuration key
session.cookie.name
can not be set and will be ignored.
c
A message from kapa.ai
Based on the information provided in the extracts, the configuration key
session.cookie.name
can indeed be set in the Ory Kratos configuration. This key allows you to change the name of the session cookie. Here is an example of how you can set it:
Copy code
yaml session:    cookie:    name: your_cookie_name
This configuration should be placed in your Ory Kratos configuration file (e.g.,
path/to/kratos/config.yml
). Please ensure that you are using the correct syntax and file location. If you continue to experience issues, it may be due to other factors not covered in the provided extracts. For more information, refer to the [Ory documentation](https://www.ory.sh/docs/kratos/guides/configuring-cookies#session-cookies).
b
Getting this when executing:
ory patch project 42284315-3902-4db5-b240-ceb3f7b5b2ed --replace '/services/identity/config/session/cookie/name="ory_kratos_session"'
@chilly-king-10285 I'm using Ory Network
c
A message from kapa.ai
I'm sorry, but your question is not clear. Could you please provide more details or context? Are you asking about a specific feature or functionality of Ory Network, or do you need help with a particular issue? The more information you provide, the better I can assist you.
b
@chilly-king-10285 How do I set this using Ory network? Patching via ory patch project 42284315-3902-4db5-b240-ceb3f7b5b2ed --replace '/services/identity/config/session/cookie/name="ory_kratos_session"' doesn't change it.
c
A message from kapa.ai
Based on the information provided in the extracts, the
ory patch project
command is used to change specific parts of the configuration in Ory Network. However, the extracts do not specifically mention the ability to change the
session.cookie.name
configuration key using this command. Here is the general format of the
ory patch project
command:
Copy code
bash ory patch project <your-project-id> --replace '/path/to/key="new value"'
In your case, you are using:
Copy code
bash ory patch project 42284315-3902-4db5-b240-ceb3f7b5b2ed --replace '/services/identity/config/session/cookie/name="ory_kratos_session"'
If this command is not working as expected, it could be due to a few reasons: 1. The
session.cookie.name
key might not be available for patching in the Ory Network project configuration. The extracts do not provide information on this specific key. 2. There might be an issue with the project ID or the path you are using. For more detailed information, you should refer to the [Ory Network documentation](https://www.ory.sh/docs/guides/cli/config-with-cli#patch-configuration) or reach out to the Ory community or support for help.