Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a cookie management system to manage cookies as required by GDPR and other privacy regulations. #32719

Closed
Ritwik880 opened this issue Mar 17, 2021 · 2 comments

Comments

@Ritwik880
Copy link

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=/";
}

@brianteeman
Copy link
Contributor

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

@joeforjoomla
Copy link
Contributor

This is a troll, close it.

@Quy Quy closed this as completed Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants