src/sap.ui.support/src/sap/ui/support/supportRules/Storage.js
function(sCookieName) {

			var name = sCookieName + "=",
				decodedCookie = decodeURIComponent(document.cookie),
				ca = decodedCookie.split(';'),
				sOutput = "";
			for (var i = 0; i < ca.length; i++) {
				var c = ca[i];
				while (c.charAt(0) == ' ') {
					c = c.substring(1);
				}
				if (c.indexOf(name) == 0) {
					sOutput = c.substring(name.length, c.length);
					return sOutput;
				}
			}

			return sOutput;

		}
function(sCookieName) {

			var name = sCookieName + "=",
				decodedCookie = decodeURIComponent(document.cookie),
				ca = decodedCookie.split(';'),
				sOutput = "";
			for (var i = 0; i < ca.length; i++) {
				var c = ca[i];
				while (c.charAt(0) == ' ') {
					c = c.substring(1);
				}
				if (c.indexOf(name) == 0) {
					sOutput = c.substring(name.length, c.length);
					return sOutput;
				}
			}

			return sOutput;

		}
function ( sCookieName ) { var name = sCookieName + "=" , decodedCookie = decodeURIComponent ( document . cookie ) , ca = decodedCookie . split ( ';' ) , sOutput = "" ; for ( var i = 0 ; i < ca . length ; i ++ ) { var c = ca [ i ] ; while ( c . charAt ( 0 ) == ' ' ) { c = c . substring ( 1 ) ; } if ( c . indexOf ( name ) == 0 ) { sOutput = c . substring ( name . length , c . length ) ; return sOutput ; } } return sOutput ; }
Retrieves the persistence options of the user in the LocalStorage layer.
@private
@method
@name sap.ui.support.Storage.readPersistenceCookie
@alias readPersistenceCookie
@param {string} sCookieName Name of the cookie.
@returns {string} sOutput The persistence options of the user.
Retrieves the persistence options of the user in the LocalStorage layer .