# Nexus Set cookie and http

**URL:** <https://community.sonatype.com/t/nexus-set-cookie-and-http/11720>\
**Category:** Sonatype Nexus Repository\
**Tags:** nexus-repository\
**Created:** [December 7, 2023, 4:22am UTC](https://community.sonatype.com/t/nexus-set-cookie-and-http/11720 "2023-12-07T04:22:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jht\_noworries](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jht\_noworries](https://community.sonatype.com/u/jht_noworries)\
**Post date:** [December 7, 2023, 4:22am UTC](https://community.sonatype.com/t/nexus-set-cookie-and-http/11720/1 "2023-12-07T04:22:37Z")

</div>

Need guidance on how I can change the nexus application to the following:

1. Set settings on this specific cookie

e.g.: Set-Cookie: \< cookie-name \>=\< cookie-value \>; secure; HttpOnly; SameSite= ‘Lax’ or ‘Strict’

1. Set settings on this specific cookie with age.

e.g.: Set-Cookie: \< cookie-name \>=\< cookie-value \>; secure; HttpOnly; max-age=9999; SameSite= ‘Lax’ or ‘Strict’.

Please let me know for updates.

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [December 7, 2023, 3:05pm UTC](https://community.sonatype.com/t/nexus-set-cookie-and-http/11720/2 "2023-12-07T15:05:55Z")

</div>

It sounds like you really want to change the session timeout? If so use the UI - [UI Settings Capability](https://help.sonatype.com/repomanager3/nexus-repository-administration/capabilities/ui-settings-capability)

---

<div class="post-metadata">

**Author:** ![jht\_noworries](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jht\_noworries](https://community.sonatype.com/u/jht_noworries)\
**Post date:** [December 7, 2023, 11:45pm UTC](https://community.sonatype.com/t/nexus-set-cookie-and-http/11720/3 "2023-12-07T23:45:53Z")

</div>

I mean, I need some guidance in terms of its jetty-https.xml file or etc. And add those parameters mentioned. Setting cookies mentioned above, If you have any advice regarding this, Please let me know.
