Cookie cleanup

Wrap setcookie call to make setting cookie easier.
Use protected _cookieParams value to get session cookie settings once.
Use cookie expiry time class constant when expiring cookies.