You need to sign in to do that
Don't have an account?
vivekanandan
Cookie Class not working after some time
We are using cookie class in the controller to enable to view the different sections of the same vf page. It was working for more than 3 months. All of a sudden it stops working and now it is failing.
When i check in the cookies of the browser , i am able to see the cookies name in the cookie list. But still the cookie method is failing and because of that we having the navigation issue in production.
Below is the cookie method:
PageReference pr = new PageReference('/apex/CustomerOverview_New?id='+account.Id+'&overview=1');
Cookie cViewCookie = new Cookie('contactViewCookie',GECASConstants.ASSET_TYPE_AIRCRAFT,null,360000000,true);
pr.setCookies(new Cookie[]{cViewCookie});
pr.setRedirect(true);
return pr;
Anyone can you please help me on this.
Did you try the behavior in different browsers?
Enable Debug Logs and look for any possible errors.
Also you can observe a debugger like Fidler to see where it breaks etc.
Regards,
Ashish