I am making a project in which i have around 30 fields and i want to store all of them in cookie so that when the user logged in again then all the fields get pre - populated, but the problem is that JSP allow only 20 cookies to set from one URL that is i am only able to create 20 cookies and rest with 10.
Please tell me that how to store multiple cookies that is more then 20 and can we store more then one value in one cookie.
Sure but you are going to have to provide your own methods for creating and parsing the cookie string. According the RFC 2109, browsers should allow at least 4096 characters per cookie so you have lots of room to encode your values. Bill
as i used "-" as delimeter and break it through StringTokenizer but when i put the values of phone like .. 123-456-789, then it will create error because when StringTokenizer will break it then it will consider only "123" in one variable and rest of the part not being considered, thsts the problem.
Have you thought about using a unique identifier as the cookie and then storing the fields and values in a database, using the udentifier as the key. When the user revisits the page use that identifier to acces the DB and retrieve/repopulate the fields.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley