Angular Cookie
var testApp = angular.module('testAppModule',['ngRoute','ngMaterial','ngCookies','ngMessages']);
testApp.controller("TestController", function($cookieStore,$timeout,$routeParams, $q, $log,$http,$scope,$rootScope,$location,$mdDialog) {
var value =[];
value[0] = dataObj1;
value[1] = dataObj2;
$cookieStore.put('sessionCookie', value);
var cookieRelease =$cookieStore.get('sessionCookie');
});
https://docs.angularjs.org/api/ngCookies/service/$cookieStore
https://docs.angularjs.org/api/ngCookies/service/$cookies
An HTTP cookie (also called web cookie, Internet cookie, browser cookie or simply cookie) 4093 bytes
HTML 5 Local Storage
http://www.w3schools.com/html/html5_webstorage.asp
http://stackoverflow.com/questions/19867599/what-is-the-difference-between-localstorage-sessionstorage-session-and-cookies
if (typeof(Storage) !== "undefined") {
// Store
localStorage.setItem("lastname", "Smith");
// Retrieve
document.getElementById("result").innerHTML = localStorage.getItem("lastname");
} else {
document.getElementById("result").innerHTML = "Sorry, your browser does not support Web Storage...";
}
Node.js Cookie parser and Express-Session
https://www.npmjs.com/package/express-session
https://www.npmjs.com/package/cookie-parser
var testApp = angular.module('testAppModule',['ngRoute','ngMaterial','ngCookies','ngMessages']);
testApp.controller("TestController", function($cookieStore,$timeout,$routeParams, $q, $log,$http,$scope,$rootScope,$location,$mdDialog) {
var value =[];
value[0] = dataObj1;
value[1] = dataObj2;
$cookieStore.put('sessionCookie', value);
var cookieRelease =$cookieStore.get('sessionCookie');
});
https://docs.angularjs.org/api/ngCookies/service/$cookieStore
https://docs.angularjs.org/api/ngCookies/service/$cookies
An HTTP cookie (also called web cookie, Internet cookie, browser cookie or simply cookie) 4093 bytes
HTML 5 Local Storage
http://www.w3schools.com/html/html5_webstorage.asp
http://stackoverflow.com/questions/19867599/what-is-the-difference-between-localstorage-sessionstorage-session-and-cookies
if (typeof(Storage) !== "undefined") {
// Store
localStorage.setItem("lastname", "Smith");
// Retrieve
document.getElementById("result").innerHTML = localStorage.getItem("lastname");
} else {
document.getElementById("result").innerHTML = "Sorry, your browser does not support Web Storage...";
}
Node.js Cookie parser and Express-Session
https://www.npmjs.com/package/express-session
https://www.npmjs.com/package/cookie-parser
Great Article
ReplyDeleteNode.js Project Topics for Computer Science
FInal Year Project Centers in Chennai
JavaScript Training in Chennai
JavaScript Training in Chennai
Great content published regarding SSH Key. Happy to read your blogs. Keep doing well
ReplyDelete