Use session on cookie instead of local file read/write