{"id":92205,"date":"2017-08-04T07:15:39","date_gmt":"2017-08-04T07:15:39","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=92205"},"modified":"2021-07-16T14:40:25","modified_gmt":"2021-07-16T14:40:25","slug":"using-cookie-class-apex","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/","title":{"rendered":"Using Cookie Class of APEX"},"content":{"rendered":"\n<p>We all are familiar with the word <strong>cookie<\/strong>. Cookies are small pieces of data that any <strong>website<\/strong> stores on your computer in order to pass that data between <strong>pages<\/strong>. Likewise <strong>APEX<\/strong> also gives us the ability to use cookies, however APEX cookies are little bit different than the normal cookies that we get in the browser. For APEX the cookie is a class that we can use to set data in a <strong>Pagereference<\/strong> variable so that it can be used later on. This is what I will demonstrate, how to use cookie class of APEX.<\/p>\n\n\n\n<div class=\"wk-index-wrap\"><h3 class=\"index-title\">Cookie Class Functions<\/h3><\/div><div class=\"margin-bottom-50\">\n<p>The default cookie class gives us multiple functions to use for accessing cookies like:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>getName() &#8211; This function returns the name of the cookie that the class has.<\/li><li>getValue() &#8211; This function provides the value of the cookie string.<\/li><li>isSecure() &#8211; Returns true if the cookie can only be accessed by HTTPS, else false.<\/li><\/ul>\n<\/div>\n\n\n\n<div class=\"wk-index-wrap\"><h3 class=\"index-title\">APEX Code to set the cookie<\/h3><\/div><div class=\"margin-bottom-50\">\n<pre class=\"wp-block-preformatted brush:java\">public class cookieorigin {\n    public string toPassData { get; set;}\n\t\n    public pagereference setData(){\n        Pagereference pr = new Pagereference('\/apex\/cookierecieve');\n        Cookie cook = new Cookie('value', toPassData, null, -1, false);\n        pr.setCookies(new Cookie[] {cook});\n        return pr;\n    }\n}<\/pre>\n\n\n\n<p>In the above class we have a simple <strong>pagereference<\/strong> method in which we have created a cookie object and to the constructor we have passed various arguments. The first argument is the <strong>name<\/strong> of the cookie, that we will use to access the cookie later on. Second argument is the actual <strong>value<\/strong> which will be passed into the cookie. The third variable is the <strong>path<\/strong>, which specifies where the cookie will be stored. Setting the path to null will just store the cookie in root. Next argument specifies the <strong>lifespan<\/strong> of the cookie. To set a normal lifespan pass any positive value to the cookie. Setting the value to 0 will destroy the cookie. A negative value will make the cookie a session cookie and will end with the session. The last argument specifies whether the cookie can only be retrieved by secure method, i.e. HTTPS or not.<\/p>\n\n\n\n<p>After creating the cookie we have to set it in the pagereference variable by the setcookies method. This method takes a list of cookie type as input so we have passed the object as a list.<\/p>\n<\/div>\n\n\n\n<div class=\"wk-index-wrap\"><h3 class=\"index-title\">VF page Code<\/h3><\/div><div class=\"margin-bottom-50\">\n<pre class=\"wp-block-preformatted brush:xml\">&lt;apex:page controller=\"cookieorigin\"&gt;\n    &lt;apex:form &gt;\n    \t&lt;apex:outputLabel for=\"inpdata\"&gt;\n         \tEnter Data:&amp;nbsp;\n        &lt;\/apex:outputLabel&gt;\n        &lt;apex:inputText value=\"{!toPassData}\"\/&gt;&lt;br\/&gt;\n        &lt;apex:commandButton action=\"{!setData}\" value=\"Go!\"\/&gt;\n    &lt;\/apex:form&gt;\n&lt;\/apex:page&gt;<\/pre>\n\n\n\n<p>The Vf page code is very much general and is used to just call the function setData() to set cookies.<\/p>\n<\/div>\n\n\n\n<div class=\"wk-index-wrap\"><h3 class=\"index-title\">Cookie receiving APEX code<\/h3><\/div><div class=\"margin-bottom-50\">\n<pre class=\"wp-block-preformatted brush:java\">public class cookierecieve {\n    public string data { get; set;}\n    \n    public cookierecieve(){\n        data = apexpages.currentPage().getCookies().get('value').getValue();\n        system.debug(data);\n    }\n}<\/pre>\n\n\n\n<p>The cookie data is fetched by the pagereference function <strong>getCookies()<\/strong>, which returns a map of all the stored cookies. From that map we get the cookie by the general <strong>get()<\/strong> function of the map and then using the <strong>getValue()<\/strong> function of the cookie we fetch the cookie value stored.<\/p>\n\n\n\n<p>Once we get it we can show it on the VF page. We can even show it on any page within the org by simply using the above command in apex controller. The cookie will be available for the provided lifespan.<\/p>\n<\/div>\n\n\n\n<div class=\"wk-index-wrap\"><h3 class=\"index-title\">Output<\/h3><\/div><div class=\"margin-bottom-50\">\n<p>The output of my code will be something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/3cjophggkmzbmx6.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" width=\"1315\" height=\"678\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/3cjophggkmzbmx6.jpg\" alt=\"Cookie class input data\" class=\"wp-image-92295\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/3cjophggkmzbmx6.jpg 1315w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/3cjophggkmzbmx6-250x129.jpg 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/3cjophggkmzbmx6-300x155.jpg 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/3cjophggkmzbmx6-768x396.jpg 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/3cjophggkmzbmx6-1200x619.jpg 1200w\" sizes=\"(max-width: 1315px) 100vw, 1315px\" loading=\"lazy\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/rs9t7cixny0c0ud.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" width=\"1315\" height=\"678\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/rs9t7cixny0c0ud.jpg\" alt=\"Cookie Class Output data\" class=\"wp-image-92296\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/rs9t7cixny0c0ud.jpg 1315w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/rs9t7cixny0c0ud-250x129.jpg 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/rs9t7cixny0c0ud-300x155.jpg 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/rs9t7cixny0c0ud-768x396.jpg 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/rs9t7cixny0c0ud-1200x619.jpg 1200w\" sizes=\"(max-width: 1315px) 100vw, 1315px\" loading=\"lazy\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wk-index-wrap\"><h3 class=\"index-title\">Support<\/h3><\/div><div class=\"margin-bottom-50\">\n<p>That\u2019s all about using cookie class of APEX, for any further queries feel free to add a ticket at:<\/p>\n\n\n\n<p><a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\">https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/<\/a><\/p>\n\n\n\n<p>Or let us know your views on how to make this code better, in comments section below.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>We all are familiar with the word cookie. Cookies are small pieces of data that any website stores on your computer in order to pass that data between pages. Likewise APEX also gives us the ability to use cookies, however APEX cookies are little bit different than the normal cookies that we get in the <a href=\"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":144,"featured_media":92304,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1889,1887,1888],"tags":[1884,5229,5230,199,1885,1933],"class_list":["post-92205","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apex","category-salesforce","category-visualforce","tag-apex","tag-apex-cookies","tag-cookie-class","tag-cookies","tag-salesforce","tag-visualforce"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to use the Cookie class in APEX to pass values between pages<\/title>\n<meta name=\"description\" content=\"Use cookie class in APEX... Cookies are small pieces of data that any website stores on your computer in order to pass that data between...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use the Cookie class in APEX to pass values between pages\" \/>\n<meta property=\"og:description\" content=\"Use cookie class in APEX... Cookies are small pieces of data that any website stores on your computer in order to pass that data between...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-08-04T07:15:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-16T14:40:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/download-8.png\" \/>\n\t<meta property=\"og:image:width\" content=\"860\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Yathansh Sharma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yathansh Sharma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/\"},\"author\":{\"name\":\"Yathansh Sharma\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/2cf74c97cc99e81430138433b2e5a342\"},\"headline\":\"Using Cookie Class of APEX\",\"datePublished\":\"2017-08-04T07:15:39+00:00\",\"dateModified\":\"2021-07-16T14:40:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/\"},\"wordCount\":520,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/download-8.png\",\"keywords\":[\"Apex\",\"Apex Cookies\",\"Cookie Class\",\"cookies\",\"Salesforce\",\"Visualforce\"],\"articleSection\":[\"Apex\",\"Salesforce\",\"Visualforce\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/\",\"url\":\"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/\",\"name\":\"How to use the Cookie class in APEX to pass values between pages\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/download-8.png\",\"datePublished\":\"2017-08-04T07:15:39+00:00\",\"dateModified\":\"2021-07-16T14:40:25+00:00\",\"description\":\"Use cookie class in APEX... Cookies are small pieces of data that any website stores on your computer in order to pass that data between...\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/download-8.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/download-8.png\",\"width\":860,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Cookie Class of APEX\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/2cf74c97cc99e81430138433b2e5a342\",\"name\":\"Yathansh Sharma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/631dfbfdb0f359990ee300274cf444e7dc7da6005653e2b711d3c9197caa4ab3?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/631dfbfdb0f359990ee300274cf444e7dc7da6005653e2b711d3c9197caa4ab3?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Yathansh Sharma\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/yathansh-sharma081\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use the Cookie class in APEX to pass values between pages","description":"Use cookie class in APEX... Cookies are small pieces of data that any website stores on your computer in order to pass that data between...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/","og_locale":"en_US","og_type":"article","og_title":"How to use the Cookie class in APEX to pass values between pages","og_description":"Use cookie class in APEX... Cookies are small pieces of data that any website stores on your computer in order to pass that data between...","og_url":"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2017-08-04T07:15:39+00:00","article_modified_time":"2021-07-16T14:40:25+00:00","og_image":[{"width":860,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/download-8.png","type":"image\/png"}],"author":"Yathansh Sharma","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Yathansh Sharma","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/"},"author":{"name":"Yathansh Sharma","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/2cf74c97cc99e81430138433b2e5a342"},"headline":"Using Cookie Class of APEX","datePublished":"2017-08-04T07:15:39+00:00","dateModified":"2021-07-16T14:40:25+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/"},"wordCount":520,"commentCount":2,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/download-8.png","keywords":["Apex","Apex Cookies","Cookie Class","cookies","Salesforce","Visualforce"],"articleSection":["Apex","Salesforce","Visualforce"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/using-cookie-class-apex\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/","url":"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/","name":"How to use the Cookie class in APEX to pass values between pages","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/download-8.png","datePublished":"2017-08-04T07:15:39+00:00","dateModified":"2021-07-16T14:40:25+00:00","description":"Use cookie class in APEX... Cookies are small pieces of data that any website stores on your computer in order to pass that data between...","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/using-cookie-class-apex\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/download-8.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/download-8.png","width":860,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/using-cookie-class-apex\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Using Cookie Class of APEX"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/2cf74c97cc99e81430138433b2e5a342","name":"Yathansh Sharma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/631dfbfdb0f359990ee300274cf444e7dc7da6005653e2b711d3c9197caa4ab3?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/631dfbfdb0f359990ee300274cf444e7dc7da6005653e2b711d3c9197caa4ab3?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Yathansh Sharma"},"url":"https:\/\/webkul.com\/blog\/author\/yathansh-sharma081\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/92205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/144"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=92205"}],"version-history":[{"count":6,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/92205\/revisions"}],"predecessor-version":[{"id":296807,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/92205\/revisions\/296807"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/92304"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=92205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=92205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=92205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}