Added cookie storage for user permissions