Added default cookie timeout
Added a function for setting the cookie timeout