In my application I'm trying to read the cookie value but in firefox4 it's reading it like
PHPSESSID=6obpuf73q9l7oelqjp49vi4f57; __utmc=111872281; __utma=111872281.346828356.1310972579.1310977402.1310984221.3; __utmz=111872281.1310972579.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); plugins_pn=0; __utmb=111872281.100.10.1310984221; pages_pn=0; selection=contract-hire
and in chrome it's reading it like
PHPSESSID=6obpuf73q9l7oelqjp49vi4f57;
selection=contract-hire
Some times in FF4 it works fine but 99% of the time it fails. Can somebody tell me how I can solve this problem.
edit
i am getting the cookie val as
var cookval = document.cookie.split('=')[2];
var sel = cookval.split(';')[0];
//sel contains the desired value