add cookie adapter for store;
fix bug for length calculation and key implementation of cooke storage adapter;