removed unserialize function in cookie