I want to use header() function to set a cookie with 30 day expiry time as shown below:
$exptime=time()+30*24*60*60; header("Set-Cookie: