basic of cookie storing and reading done