?
avatar Ritwik880
Ritwik880
17 Mar 2021

Is your feature request related to a problem? Please describe.

When the cookie is set on the client’s browser , it can persist for days , months or years , This makes it easy to save user preferences & visit information , The cookies are stored on the client’s hard disk , so , if the server crashes , the cookies are still available .

Describe the solution you'd like

First, we create a function that stores the name of the visitor in a cookie variable:

function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays2460601000));
var expires = "expires="+ d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}

avatar Ritwik880 Ritwik880 - open - 17 Mar 2021
avatar joomla-cms-bot joomla-cms-bot - change - 17 Mar 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Mar 2021
avatar brianteeman
brianteeman - comment - 17 Mar 2021

The title of this request has nothing to do with the content of the request.

avatar joeforjoomla
joeforjoomla - comment - 17 Mar 2021

This is a troll, close it.

avatar Quy Quy - change - 17 Mar 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-03-17 18:05:28
Closed_By Quy
avatar Quy Quy - close - 17 Mar 2021

Add a Comment

Login with GitHub to post a comment