Manage secure cookies. Fix path handling