I have a line in the beginning of my script to set some cookie using HTTP header.
Somewhere in my script, I have to read the value of $ENV{'HTTP_COOKIE'}. But $ENV{'HTTP_COOKIE'} does not contain the value I set using the HTTP header. Is there a way to force Perl to refresh the value of $ENV{'HTTP_COOKIE'} (ask it to retrieve cookies from browser again).
Somewhere in my script, I have to read the value of $ENV{'HTTP_COOKIE'}. But $ENV{'HTTP_COOKIE'} does not contain the value I set using the HTTP header. Is there a way to force Perl to refresh the value of $ENV{'HTTP_COOKIE'} (ask it to retrieve cookies from browser again).