Please How can i set a cookie-free domain in PhP script using the config ?
Share
Please How can i set a cookie-free domain in PhP script using the config ?
The first thing you can learn HTML, whether you want to become a professional web developer or just want to learn more about how websites work. The basic language for developing web pages and web applications is HTML. A server ...
Asynchronous Javascript One of AJAX’s benefits is it provides instantaneous feedback to the user because it requests information asynchronously from the backend web server. However, using AJAX does not guarantee the user will not wait for the asynchronous JavaScript and ...
How To Make Cookie Free Domain An HTTP cookie (also known as a web cookie, Internet cookie, browser cookie, or simply cookie) is a small piece of data sent from a website and stored on the user’s computer by the ...
If you set your cookies on a top-level domain (e.g.
yourwebsite.com
) all of your subdomains (e.g.static.yourwebsite.com
) will also include the cookies that are set. Therefore, in this case, it is required that you use a separate domain name to deliver your static content if you want to use cookie-free domains. However, if you set your cookies on awww
subdomain such aswww.yourwebsite.com
, you can create another subdomain (e.g.static.yourwebsite.com
) to host all of your static files which will no longer result in any cookies being sent.