In asp.net if u try to get the value of a cookie that is non existant, it causes a page error. Is there anyway of makeing this stop? For example, my site is customizable, so it checks a cookie to see if the user is logged in. If login="" then it mean the user isn't logged in. But, when the cookie hasn't been written because this is the users first time to this site, it causes an error.