# Nexus set cookie, age, same site, http only

**URL:** <https://community.sonatype.com/t/nexus-set-cookie-age-same-site-http-only/11766>\
**Category:** Sonatype Nexus Repository\
**Created:** [December 15, 2023, 2:09am UTC](https://community.sonatype.com/t/nexus-set-cookie-age-same-site-http-only/11766 "2023-12-15T02:09:21Z")\
**Posts on this page:** 1\
**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 15, 2023, 2:09am UTC](https://community.sonatype.com/t/nexus-set-cookie-age-same-site-http-only/11766/1 "2023-12-15T02:09:21Z")

</div>

Need help on changing this nexus jetty-https.xml file to this following specifications.

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’.
