{"id":76369,"date":"2024-11-17T02:50:31","date_gmt":"2024-11-17T02:50:31","guid":{"rendered":"http:\/\/bangla.sitestree.com\/?p=76369"},"modified":"2024-11-17T02:50:32","modified_gmt":"2024-11-17T02:50:32","slug":"solution-that-worked-for-the-issue-your-current-session-has-been-expired-for-magento2","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=76369","title":{"rendered":"Solution that worked for the issue: Your current session has been expired. for Magento2"},"content":{"rendered":"\n<p>Solution that worked for the issue: Your current session has been expired. for Magento2<\/p>\n\n\n\n<p>cat shell-scripts\/temp.sh<br># fix misc issues, can be routine<\/p>\n\n\n\n<p>sudo php bin\/magento maintenance:enable<br>#sudo rm -rf var\/cache\/<br>#sudo rm -rf generated\/<br>sudo chmod +x bin\/magento<br>sudo php bin\/magento setup:upgrade<br>#sudo php bin\/magento setup:static-content:deploy -f<br>sudo php bin\/magento setup:di:compile<br>sudo php bin\/magento indexer:reindex<br>sudo php bin\/magento cache:clean<br>sudo php bin\/magento cache:flush<br>sudo php bin\/magento setup:static-content:deploy -f<br>sudo php bin\/magento maintenance:disable<\/p>\n\n\n\n<p>#Then adjust permissions for var<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"># other options tried: <\/h1>\n\n\n\n<h1 class=\"wp-block-heading\"><\/h1>\n\n\n\n<pre class=\"wp-block-code\"><code>did not solve:\nINSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`)\n    VALUES ('default', 0, 'admin\/security\/session_lifetime', '86400');<\/code><\/pre>\n\n\n\n<p>Tried but did not help<\/p>\n\n\n\n<p><strong>Go to :\u00a0<code>admin_user_session<\/code>\u00a0table in MySql Set\u00a0<code>created_at<\/code>\u00a0column to &#8216;0&#8217; and\u00a0<code>updated_at<\/code>\u00a0column to &#8216;CURRENT_TIMESTAMP&#8217; as it is.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Solution that worked for the issue: Your current session has been expired. for Magento2 cat shell-scripts\/temp.sh# fix misc issues, can be routine sudo php bin\/magento maintenance:enable#sudo rm -rf var\/cache\/#sudo rm -rf generated\/sudo chmod +x bin\/magentosudo php bin\/magento setup:upgrade#sudo php bin\/magento setup:static-content:deploy -fsudo php bin\/magento setup:di:compilesudo php bin\/magento indexer:reindexsudo php bin\/magento cache:cleansudo php bin\/magento cache:flushsudo php &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=76369\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-76369","post","type-post","status-publish","format-standard","hentry","category-root","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":15984,"url":"http:\/\/bangla.sitestree.com\/?p=15984","url_meta":{"origin":76369,"position":0},"title":"Upgrade magento from 2.3.1 to 2.3.2","author":"Sayed","date":"August 19, 2019","format":false,"excerpt":"Upgrade Magento from 2.3.1 to 2.3.2 From 2.3.0 to 2.3.2 should also work; from some other earlier versions may or may not work.. A very similar approach worked for me (Note: I have no interest to work in the industry with Magento). Also, after upgrade, check the error log and\/or\u2026","rel":"","context":"In &quot;Magento 2&quot;","block_context":{"text":"Magento 2","link":"http:\/\/bangla.sitestree.com\/?cat=1907"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14846,"url":"http:\/\/bangla.sitestree.com\/?p=14846","url_meta":{"origin":76369,"position":1},"title":"Learn some CentOS Linux : Redhat Linux","author":"Sayed","date":"June 29, 2019","format":false,"excerpt":"This is mostly about Centos Linux. However, this also shows commands related to how to install Magento 2 on LEMP (E for Nginx Web-server). Some PHP related stuff are there as well. LEMP + CentOS + Magento 2 : VM Image or one click install: I did not see readily\u2026","rel":"","context":"In &quot;Magento 2&quot;","block_context":{"text":"Magento 2","link":"http:\/\/bangla.sitestree.com\/?cat=1907"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":25055,"url":"http:\/\/bangla.sitestree.com\/?p=25055","url_meta":{"origin":76369,"position":2},"title":"Learn and practice some CentOS Linux : Redhat Linux #Root","author":"Author-Check- Article-or-Video","date":"April 15, 2021","format":false,"excerpt":"This is mostly about Centos Linux. However, this also shows commands related to how to install Magento 2 on LEMP (E for Nginx Web-server). Some PHP related stuff are there as well. Let's Encrypt included. LEMP + CentOS + Magento 2 : VM Image or one click install: I did\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":17034,"url":"http:\/\/bangla.sitestree.com\/?p=17034","url_meta":{"origin":76369,"position":3},"title":"All About Magento 2: Indexing\/reindexing","author":"Sayed","date":"May 4, 2020","format":false,"excerpt":"[Do not forget to search this site to learn\/find related information] # Use reset to reset current indexing status # You may not need to use this all the time # You will need to use this when you see invalid indexing status or you see index locked; # When\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.salearningschool.com\/wp-content\/uploads\/2020\/05\/Screen-Shot-2020-05-03-at-3.43.03-PM.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bangla.salearningschool.com\/wp-content\/uploads\/2020\/05\/Screen-Shot-2020-05-03-at-3.43.03-PM.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/bangla.salearningschool.com\/wp-content\/uploads\/2020\/05\/Screen-Shot-2020-05-03-at-3.43.03-PM.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/bangla.salearningschool.com\/wp-content\/uploads\/2020\/05\/Screen-Shot-2020-05-03-at-3.43.03-PM.png?resize=700%2C400 2x"},"classes":[]},{"id":17077,"url":"http:\/\/bangla.sitestree.com\/?p=17077","url_meta":{"origin":76369,"position":4},"title":"Magento 2 Useful and Important CLI Commands List","author":"Sayed","date":"May 24, 2020","format":false,"excerpt":"\"Cache CLI (Status, Enable, Disable, Clean, Flush) php bin\/magento cache:clean Cleans cache type(s) php bin\/magento cache:disable Disables cache type(s) php bin\/magento cache:enable Enables cache type(s) php bin\/magento cache:flush Flushes cache storage used by cache type(s) php bin\/magento cache:status\" Checks cache status \" Also Check: http:\/\/bangla.salearningschool.com\/recent-posts?s=bin%2Fmagento Also Check: http:\/\/bangla.salearningschool.com\/recent-posts?s=magento Also, Check:\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26262,"url":"http:\/\/bangla.sitestree.com\/?p=26262","url_meta":{"origin":76369,"position":5},"title":"Magento 2 Useful and Important CLI Commands List #Root","author":"Author-Check- Article-or-Video","date":"April 21, 2021","format":false,"excerpt":"\"Cache CLI (Status, Enable, Disable, Clean, Flush) php bin\/magento cache:clean Cleans cache type(s) php bin\/magento cache:disable Disables cache type(s) php bin\/magento cache:enable Enables cache type(s) php bin\/magento cache:flush Flushes cache storage used by cache type(s) php bin\/magento cache:status\" Checks cache status \" Also Check: http:\/\/bangla.salearningschool.com\/recent-posts?s=bin%2Fmagento Also Check: http:\/\/bangla.salearningschool.com\/recent-posts?s=magento Also, Check:\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/76369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=76369"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/76369\/revisions"}],"predecessor-version":[{"id":76370,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/76369\/revisions\/76370"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=76369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=76369"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=76369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}