You need to sign in to do that
Don't have an account?
stephanie_z
How to read cookie values in remote method
I have a class which only provides remote methods for AJAX calls. In one of the methods, I need to read a cookie which is set by other pages. I tried to use ApexPages.currentPage().getCookies().get(<cookiename>), but it doesn't work since ApexPages.currentPage() is null. I guess it might be because the class is not associated with any VF. Is there any other way to fetch cookie values in remote methods?