xref: /aosp_15_r20/external/curl/docs/cmdline-opts/junk-session-cookies.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1---
2c: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3SPDX-License-Identifier: curl
4Long: junk-session-cookies
5Short: j
6Help: Ignore session cookies read from file
7Protocols: HTTP
8Category: http
9Added: 7.9.7
10Multi: boolean
11See-also:
12  - cookie
13  - cookie-jar
14Example:
15  - --junk-session-cookies -b cookies.txt $URL
16---
17
18# `--junk-session-cookies`
19
20When curl is told to read cookies from a given file, this option makes it
21discard all "session cookies". This has the same effect as if a new session is
22started. Typical browsers discard session cookies when they are closed down.
23