xref: /aosp_15_r20/external/curl/docs/cmdline-opts/junk-session-cookies.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker---
2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl
4*6236dae4SAndroid Build Coastguard WorkerLong: junk-session-cookies
5*6236dae4SAndroid Build Coastguard WorkerShort: j
6*6236dae4SAndroid Build Coastguard WorkerHelp: Ignore session cookies read from file
7*6236dae4SAndroid Build Coastguard WorkerProtocols: HTTP
8*6236dae4SAndroid Build Coastguard WorkerCategory: http
9*6236dae4SAndroid Build Coastguard WorkerAdded: 7.9.7
10*6236dae4SAndroid Build Coastguard WorkerMulti: boolean
11*6236dae4SAndroid Build Coastguard WorkerSee-also:
12*6236dae4SAndroid Build Coastguard Worker  - cookie
13*6236dae4SAndroid Build Coastguard Worker  - cookie-jar
14*6236dae4SAndroid Build Coastguard WorkerExample:
15*6236dae4SAndroid Build Coastguard Worker  - --junk-session-cookies -b cookies.txt $URL
16*6236dae4SAndroid Build Coastguard Worker---
17*6236dae4SAndroid Build Coastguard Worker
18*6236dae4SAndroid Build Coastguard Worker# `--junk-session-cookies`
19*6236dae4SAndroid Build Coastguard Worker
20*6236dae4SAndroid Build Coastguard WorkerWhen curl is told to read cookies from a given file, this option makes it
21*6236dae4SAndroid Build Coastguard Workerdiscard all "session cookies". This has the same effect as if a new session is
22*6236dae4SAndroid Build Coastguard Workerstarted. Typical browsers discard session cookies when they are closed down.
23