Setting cookie expiration
// The cookie expires one hour from now setcookie('short-userid','AAA',time() + 60*60);