The length of time a cookie will stay on your computer or mobile phone depends on the type of cookie if it is a persistent or session cookie. Session cookies will stay on your device for a time period while you are browsing. Persistent cookies stay on your computer or mobile phone much longer, until they expire or are deleted.