Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: CGI::Session Cookies

by Your Mother (Archbishop)
on Jul 09, 2022 at 14:35 UTC ( [id://11145394]=note: print w/replies, xml ) Need Help??


in reply to CGI::Session Cookies

Make sure you have the right version of CGI::Cookie. SameSite support was added in 2016 and has been mentioned in the changelog a couple of times since.

>perl -MCGI::Cookie -E'say CGI::Cookie->new(-name=>"a",-value=>"b",-sa +mesite=>"Lax")' a=b; path=/; SameSite=Lax >cpanm CGI::Cookie CGI::Cookie is up to date. (4.54)

Replies are listed 'Best First'.
Re^2: CGI::Session Cookies
by JayBee (Scribe) on Jul 09, 2022 at 22:07 UTC
    Yes, updating CGI::Cookie had the proper effect and was able to get the correct output with my 2nd approach. Thank you

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11145394]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2026-02-15 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.