using array cookie instead of php serialization