Very generic but working implementation of session storage fallback for safari in privacy mode