Forum Discussion

Robert_47833's avatar
Robert_47833
Icon for Altostratus rankAltostratus
Feb 15, 2015

cookie set in HTTP::respond 302 ,but I need to set expires as 7 days for this cookie

when HTTP_REQUEST { set cookie [format "%s=%s; path=/;" cookeiname cookievalue] HTTP::respond 302 Location "https://[HTTP::host]/xyz" "Set-Cookie" $cookie }   I need to set this cooki...
  • kunjan_118660's avatar
    Feb 15, 2015

    Try "Max-age=604800"

    set cookie [format "%s=%s; Max-Age=604800; path=/; domain=%s" $ckname $ckvalue ".domain.org"]