View Single Post
Old 05-29-2023, 01:12 AM  
zawali
Confirmed User
 
zawali's Avatar
 
Industry Role:
Join Date: Nov 2022
Posts: 388
is it possible to set multiple cookies using one Set-Cookie: response header ?

Hello all
I wonder if it is possible to set multiple cookies using one Set-Cookie response header instead of using multiple Set-Cookie: directives (one Set-Cookie: per each cookie)

For example, when someone connects to a website and receives two cookies in response the response headers will be like this
Set-Cookie: cookiename1=value1
Set-Cookie: cookiename2=value2

I want something like this:
Set-Cookie: cookiename1=value1, cookiename2=value2
I heard that this is feasible and acceptable syntax but it does not seem to work on both chrome and firefox.

Any ideas or suggestions? Thanks in advance.
zawali is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote