Add cookie security
Finalize cookie security