{"id":56168,"date":"2016-07-29T14:23:55","date_gmt":"2016-07-29T14:23:55","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=56168"},"modified":"2025-12-30T10:34:08","modified_gmt":"2025-12-30T10:34:08","slug":"set-get-data-cookie-magento2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/","title":{"rendered":"Set, get and delete data from cookie in magento 2"},"content":{"rendered":"\n<p><strong>Set get and delete cookies in Magento 2<\/strong> is a common requirement for storing small data such as user preferences, session values, or tracking information.<\/p>\n\n\n\n<p>In this article, you will learn how to <strong>set get and delete cookies in Magento 2<\/strong> using a custom module and Magento\u2019s cookie management classes.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Create a Cookie Handler Class in Magento 2<\/h2>\n\n\n\n<p>To <strong>set get and delete cookies in Magento 2<\/strong>, first create a <code>Cookie<\/code> folder inside your module directory: app\/code\/Namespace\/Module\/Cookie\/<\/p>\n\n\n\n<p>Then create a <code>Custom.php<\/code> file. This class will handle all cookie operations in Magento 2.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Magento 2 Cookie Management Class Example<\/h2>\n\n\n\n<p>The following example shows how to manage cookies in Magento 2 using <code>CookieManagerInterface<\/code> and <code>CookieMetadataFactory<\/code>.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?php\nnamespace Namespace\\Module\\Cookie;\n\nuse Magento\\Framework\\Session\\SessionManagerInterface;\nuse Magento\\Framework\\Stdlib\\Cookie\\CookieMetadataFactory;\nuse Magento\\Framework\\Stdlib\\CookieManagerInterface;\n\nclass Custom\n{\n    public const COOKIE_NAME = \"webkul_cookie\";\n\n    protected $_cookieManager;\n    protected $_cookieMetadataFactory;\n    protected $_sessionManager;\n\n    public function __construct(\n        CookieManagerInterface $cookieManager,\n        CookieMetadataFactory $cookieMetadataFactory,\n        SessionManagerInterface $sessionManager\n    ) {\n        $this->_cookieManager = $cookieManager;\n        $this->_cookieMetadataFactory = $cookieMetadataFactory;\n        $this->_sessionManager = $sessionManager;\n    }\n\n    public function get()\n    {\n        return $this->_cookieManager->getCookie(self::COOKIE_NAME);\n    }\n\n    public function set($value, $duration = 86400)\n    {\n        $metadata = $this->_cookieMetadataFactory\n            ->createPublicCookieMetadata()\n            ->setDuration($duration)\n            ->setPath($this->_sessionManager->getCookiePath())\n            ->setDomain($this->_sessionManager->getCookieDomain());\n\n        $this->_cookieManager->setPublicCookie(\n            self::COOKIE_NAME,\n            $value,\n            $metadata\n        );\n    }\n\n    public function delete()\n    {\n        $this->_cookieManager->deleteCookie(\n            self::COOKIE_NAME,\n            $this->_cookieMetadataFactory\n                ->createCookieMetadata()\n                ->setPath($this->_sessionManager->getCookiePath())\n                ->setDomain($this->_sessionManager->getCookieDomain())\n        );\n    }\n}\n<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">How to Set Cookies in Magento 2<\/h2>\n\n\n\n<p>To <strong>set cookies in Magento 2<\/strong>, call the <code>set()<\/code> method from your custom cookie class.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n\n$objectManager->get(\n   'Namespace\\Module\\Cookie\\Custom'\n)->set('custom_data', 3600);\n<\/pre>\n\n\n\n<p>This stores the cookie value for one hour.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">How to Get Cookies in Magento 2<\/h2>\n\n\n\n<p>To <strong>get cookies in Magento 2<\/strong>, use the <code>get()<\/code> method.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$value = $objectManager->get(\n   'Namespace\\Module\\Cookie\\Custom'\n)->get();\n\necho $value;\n<\/pre>\n\n\n\n<p>This retrieves the stored cookie value.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">How to Delete Cookies in Magento 2<\/h2>\n\n\n\n<p>To <strong>delete cookies in Magento 2<\/strong>, call the <code>delete()<\/code> method.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$objectManager->get(\n   'Namespace\\Module\\Cookie\\Custom'\n)->delete();\n<\/pre>\n\n\n\n<p>This removes the cookie from the browser.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Best Practices for Cookies in Magento 2<\/h2>\n\n\n\n<p>Always use Magento\u2019s cookie management APIs. This ensures security, proper scope handling, and compatibility with Magento core updates.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Using this approach, you can safely manage cookies without relying on native PHP cookie functions. This method is clean, secure, and fully aligned with Magento development standards.<\/p>\n\n\n\n<p>If you need technical assistance, please reach out to us at&nbsp;<a href=\"mailto:support@webkul.com\">support@webkul.com<\/a>. Additionally, discover various solutions to improve your online store by visiting the&nbsp;<a href=\"https:\/\/store.webkul.com\/Magento-2.html\">Adobe Commerce modules<\/a>&nbsp;section.<\/p>\n\n\n\n<p>For professional advice or to create custom functionalities, consider hiring&nbsp;<a href=\"https:\/\/webkul.com\/hire-magento-developers\/\">Adobe Commerce Developers<\/a>&nbsp;for your project.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Set get and delete cookies in Magento 2 is a common requirement for storing small data such as user preferences, session values, or tracking information. In this article, you will learn how to set get and delete cookies in Magento 2 using a custom module and Magento\u2019s cookie management classes. Create a Cookie Handler Class <a href=\"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":103,"featured_media":39246,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302],"tags":[3458,3459],"class_list":["post-56168","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento2","tag-get-and-delete-data-from-cookie-in-magento-2","tag-set-data-to-cookie-in-magento-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Set get and delete cookies in Magento 2<\/title>\n<meta name=\"description\" content=\"Learn how to set, get, and delete cookies in Magento 2 using Magento\u2019s cookie manager. This guide explains secure cookie handling with practical examples.\" \/>\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\/set-get-data-cookie-magento2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Set get and delete cookies in Magento 2\" \/>\n<meta property=\"og:description\" content=\"Learn how to set, get, and delete cookies in Magento 2 using Magento\u2019s cookie manager. This guide explains secure cookie handling with practical examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/\" \/>\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=\"2016-07-29T14:23:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-30T10:34:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Pranjali Goel\" \/>\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=\"Pranjali Goel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/\"},\"author\":{\"name\":\"Pranjali Goel\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/c1964884ceb33a5ffdf322ee5424f692\"},\"headline\":\"Set, get and delete data from cookie in magento 2\",\"datePublished\":\"2016-07-29T14:23:55+00:00\",\"dateModified\":\"2025-12-30T10:34:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/\"},\"wordCount\":288,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet.png\",\"keywords\":[\"get and delete data from cookie in magento 2\",\"set data to cookie in magento 2\"],\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/\",\"url\":\"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/\",\"name\":\"Set get and delete cookies in Magento 2\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet.png\",\"datePublished\":\"2016-07-29T14:23:55+00:00\",\"dateModified\":\"2025-12-30T10:34:08+00:00\",\"description\":\"Learn how to set, get, and delete cookies in Magento 2 using Magento\u2019s cookie manager. This guide explains secure cookie handling with practical examples.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set, get and delete data from cookie in magento 2\"}]},{\"@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\/c1964884ceb33a5ffdf322ee5424f692\",\"name\":\"Pranjali Goel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e670273251719f83735534af186231dd99fbe378466fef356d4e55de5b46244f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e670273251719f83735534af186231dd99fbe378466fef356d4e55de5b46244f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"caption\":\"Pranjali Goel\"},\"description\":\"Believes in simple lifestyle and follow a simple logic to make herself better than yesterday.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/pranjali968\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Set get and delete cookies in Magento 2","description":"Learn how to set, get, and delete cookies in Magento 2 using Magento\u2019s cookie manager. This guide explains secure cookie handling with practical examples.","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\/set-get-data-cookie-magento2\/","og_locale":"en_US","og_type":"article","og_title":"Set get and delete cookies in Magento 2","og_description":"Learn how to set, get, and delete cookies in Magento 2 using Magento\u2019s cookie manager. This guide explains secure cookie handling with practical examples.","og_url":"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-07-29T14:23:55+00:00","article_modified_time":"2025-12-30T10:34:08+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet.png","type":"image\/png"}],"author":"Pranjali Goel","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Pranjali Goel","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/"},"author":{"name":"Pranjali Goel","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/c1964884ceb33a5ffdf322ee5424f692"},"headline":"Set, get and delete data from cookie in magento 2","datePublished":"2016-07-29T14:23:55+00:00","dateModified":"2025-12-30T10:34:08+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/"},"wordCount":288,"commentCount":2,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet.png","keywords":["get and delete data from cookie in magento 2","set data to cookie in magento 2"],"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/","url":"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/","name":"Set get and delete cookies in Magento 2","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet.png","datePublished":"2016-07-29T14:23:55+00:00","dateModified":"2025-12-30T10:34:08+00:00","description":"Learn how to set, get, and delete cookies in Magento 2 using Magento\u2019s cookie manager. This guide explains secure cookie handling with practical examples.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/set-get-data-cookie-magento2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Set, get and delete data from cookie in magento 2"}]},{"@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\/c1964884ceb33a5ffdf322ee5424f692","name":"Pranjali Goel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e670273251719f83735534af186231dd99fbe378466fef356d4e55de5b46244f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e670273251719f83735534af186231dd99fbe378466fef356d4e55de5b46244f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","caption":"Pranjali Goel"},"description":"Believes in simple lifestyle and follow a simple logic to make herself better than yesterday.","url":"https:\/\/webkul.com\/blog\/author\/pranjali968\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/56168","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\/103"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=56168"}],"version-history":[{"count":12,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/56168\/revisions"}],"predecessor-version":[{"id":519357,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/56168\/revisions\/519357"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/39246"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=56168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=56168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=56168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}