Cookie Session Php

setcookie('longer-userid','AAA',time() + 60*60*24);