Hey guys, do you know how to create cookies for IE manually? I mean creating a programmatically cookie from scratch with a custom domain, expiration time, path and sign value.
Many thanks!
You mean cookies like this:
var date = new Date(); var days = 10000; date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); document.cookie = "test" + "; expires= " + date.toGMTString(); +"; path=/"; alert(document.cookie);
Cookies are usually created on the server using apis, for example: javax.servlet.http.Cookie . This API allows you to specify the items you are asking for. The browser simply delays the cookies it receives from the server.
cookie , , , .
javascript , , , , .
Source: https://habr.com/ru/post/1716336/More articles:xVal, DataAnnotes throughout the class - asp.net-mvcHow to get relative path using Ant - flexHow to get the browser to receive the updated PDF file created in the SSRS report? - browserWhy does Javascript calling the WebMethod page result in "500: Unknown Web Method"? - javascriptBest Flash Download Widget - ActionscriptHow to programmatically "Click" Silverlight HyperlinkButton (WebAii) - hyperlinkResponse.Redirect in HttpModule - cookiesWhen do you use aliasing? - ruby | fooobar.comAlternative php libcurl - phpКак PHP взаимодействует с MySQL на одном сервере - phpAll Articles