set persistent cookie using session cookie parameters