Tuesday, October 19, 2021

Setting cookies with javascript

 document.cookie

//It will show all the cookie stored with refrence to website

to Set Cookie

document.cookie = "name=atul";

document.cookie = "age=12";

 document.cookie

'name=atul;age=12' //Cookie will be in String Form

add split function to split it in the form of array;

No comments:

Post a Comment

Priority queue deleting elements after ascending inputs Gaand Fadd

 using namespace std; #include<iostream> #define N 5 class pq { public:     int* arr;     int front;     int rear;     pq() {         ...