PDA

View Full Version : How to put 5/10 recently visited Values in cookie



asahoo
12 Aug 2014, 5:14 AM
There is a dropdown.I need to bind the store for this dropdown. The data for this store will come from Cookie.

The Cookie will contain recently visted names(those have been accessed recently). The max size of the store/Cookie will be 5 .I know how to put single values in the cookie by using Set method of Cookie utility.
However on the above requirement(putting most recently values) in cookie, is something i need suggestion.
Thanks in advance.

Scott-1
12 Aug 2014, 5:31 AM
You could put the values in a single delimited string into the cookie, Then upon reading the cookie split on the delimited value

Value1-Value2-Value3

Value1
Value2
Value3

asahoo
12 Aug 2014, 6:04 AM
thanks Scott. i will try this one