Functionnal example. Still potential work on cookie management