Revert "changing to set cookies for more better structure"

This reverts commit 338a114ee3c6da58a363a83bd574ed5e909f4eb9.