You need to sign in to do that
Don't have an account?
![College Management College Management](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Any way to setDomain for Cookie in salesforce ?
Is there any possibility to change or set domain for cookies in browsers ?
![User-added image](/forums/servlet/rtaImage?eid=9060G000000Xf4K&feoid=Body&refid=0EM0G000000c0sO)
Help me out
Thanks !
Help me out
Thanks !
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
You can set cookies via salesforce class using the Cookie class and its constructor.
Check the link below:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_sites_cookie.htm
_ Santosh
In provided ref there is nothing to set domain ,
Constructor : Cookie(name, value, path, maxAge, isSecure)
We can provide name, value, path , age and security but there is no way setting domain. No idea how the cookie has been setting its domain in browser.
@Jack,
First field in the sense ?
Thanks !