IE8 support for cart and session id

if local storage is not available, cart and session id will be saved
into a cookie.