{"id":363,"date":"2026-01-28T19:46:58","date_gmt":"2026-01-29T00:46:58","guid":{"rendered":"https:\/\/www.thing-king.de\/en\/?p=363"},"modified":"2026-02-02T20:05:12","modified_gmt":"2026-02-03T01:05:12","slug":"mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins","status":"publish","type":"post","link":"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/","title":{"rendered":"Mealie: Logged out after two days? How to extend session duration and reduce re-logins"},"content":{"rendered":"\n<p>If you self-host Mealie, you know the problem: You open the recipe management software because you want to cook something \u2013 and you&#8217;re greeted with the login screen. You have to enter your username and password again, even though you feel like you logged in just recently. By default, Mealie automatically logs you out every two days, which can quickly become annoying in everyday use.<\/p>\n\n\n\n<p class=\"has-background has-small-font-size\" style=\"background:linear-gradient(135deg,rgba(255,245,204,0) 0%,rgb(182,227,212) 32%,rgba(51,168,181,0.51) 100%)\"><strong>Notice:<\/strong><br>This is a translation of the German article. Please note that especially menu names, button labels, names, screenshots etc. might not be translated (correctly). Feel free to let us know in the comments if you notice any errors.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><strong>In This Article<\/strong><\/p>\n\n\n\n<nav class=\"wp-block-table-of-contents\"><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#why-does-this-happen\">Why Does This Happen?<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#why-should-you-increase-the-token-lifetime\">Why Should You Increase the Token Lifetime?<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#the-solution-increase-token-time\">The Solution: Increase TOKEN_TIME<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#sources-and-further-information\">Sources and further information<\/a><\/li><\/ol><\/nav>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><div class=\"align-center\" style=\"\"><style type=\"text\/css\">:root {--nova25-primary-color:#ff6a00;--nova25-secondary-color:#ffffff;--nova25-accent-color:#0066cc;--nova25-title-color:#333333;--nova25-text-color:#333333;--nova25-light-text:#666666;--nova25-border-color:#dddddd;--nova25-border-width:1px;--nova25-highlight-color:#fffaf2;--nova25-success-color:#4caf50;--nova25-border-radius:6px;--nova25-shadow:0 4px 10px rgba(0, 0, 0, 0.08);--nova25-transition:all 0.25s ease;--nova25-discount-color:#28a745;--nova25-price-color:#ff6a00;--nova25-deal-badge-color:#CC0C39;--nova25-button-text-color:#ffffff;--nova25-button-hover-color:#e65c00;--nova25-button-font:inherit;--nova25-button-padding:10px;--nova25-features-font-size:80%;--nova25-secondary-button-color:#f8f8f8;--nova25-secondary-button-hover-color:#eeeeee;--nova25-secondary-button-text-color:#333333;--nova25-image-background-color:#ffffff;}.nova25.asa2-product-box {font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif !important;max-width:850px !important;margin:25px auto !important;border-radius:var(--nova25-border-radius) !important;box-shadow:var(--nova25-shadow) !important;border:var(--nova25-border-width) solid var(--nova25-border-color) !important;background-color:white !important;transition:var(--nova25-transition) !important;overflow:visible !important;width:auto !important;height:auto !important;position:relative !important;clear:both !important;display:block !important;float:none !important;line-height:1.4 !important;text-align:left !important;color:#333333 !important;}.nova25.asa2-product-box:hover {transform:translateY(-2px);box-shadow:0 6px 16px rgba(0, 0, 0, 0.12);}.nova25 .product-container {display:flex !important;flex-wrap:wrap !important;margin:0 !important;padding:0 !important;width:100% !important;box-sizing:border-box !important;}.nova25 .product-image-section {flex:0 0 35%;position:relative;padding:20px;background-color:var(--nova25-image-background-color);display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:var(--nova25-border-radius) !important;}.nova25 .product-image-wrapper {position:relative;display:block;text-align:center;transition:var(--nova25-transition);}.nova25 .product-image-wrapper:hover {transform:scale(1.03);}.nova25 .product-image {max-width:100% !important;max-height:240px !important;object-fit:contain !important;width:auto !important;height:auto !important;display:block !important;margin:0 auto !important;border:none !important;outline:none !important;vertical-align:top !important;border-radius:var(--nova25-border-radius) !important;}.nova25 .image-slideshow {position:relative;width:100%;height:100%;}.nova25 .slideshow-container {position:relative;width:100%;height:100%;overflow:hidden;border-radius:var(--nova25-border-radius);}.nova25 .slides {position:relative;width:100%;height:100%;}.nova25 .slide {position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;transition:opacity 0.3s ease;display:flex;align-items:center;justify-content:center;}.nova25 .slide.active {opacity:1;}.nova25 .slide a {display:block;width:100%;height:100%;display:flex;align-items:center;justify-content:center;}.nova25 .slideshow-nav {position:absolute;top:50%;transform:translateY(-50%);background:rgba(255, 255, 255, 0.9);border:none;border-radius:50%;width:32px;height:32px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--nova25-text-color);transition:var(--nova25-transition);box-shadow:0 2px 8px rgba(0, 0, 0, 0.15);z-index:10;}.nova25 .slideshow-nav:hover {background:rgba(255, 255, 255, 1);box-shadow:0 4px 12px rgba(0, 0, 0, 0.25);}.nova25 .slideshow-nav.prev {left:5px;}.nova25 .slideshow-nav.next {right:5px;}.nova25 .slideshow-indicators {position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:8px;z-index:10;}.nova25 .indicator {width:10px;height:10px;border-radius:5px;background:rgba(0, 0, 0, 0.3);border:1px solid rgba(255, 255, 255, 0.6);cursor:pointer;transition:all 0.3s ease;box-shadow:0 1px 3px rgba(0, 0, 0, 0.2);}.nova25 .indicator:hover {background:rgba(0, 0, 0, 0.5);border-color:rgba(255, 255, 255, 0.8);transform:scale(1.1);}.nova25 .indicator.active {width:28px;background:rgba(255, 255, 255, 0.8);border:1px solid rgba(0, 0, 0, 0.4);box-shadow:0 2px 6px rgba(0, 0, 0, 0.3);}.nova25 .prime-badge {position:absolute;bottom:5px;right:5px;background-color:rgba(255, 255, 255, 0.9);border-radius:4px;padding:2px 5px;}.nova25 .prime-icon {height:18px;width:auto;}.nova25 .product-info-section {flex:0 0 65%;padding:20px;display:flex;flex-direction:column;box-sizing:border-box;}.nova25 .product-header {margin-bottom:15px;}.nova25 .product-card-header {background-color:var(--nova25-primary-color);color:white;padding:8px 15px;font-weight:bold;text-align:center;font-size:0.9em;text-transform:uppercase;letter-spacing:1px;}.nova25 .product-badge-row {display:flex;justify-content:flex-end;margin-bottom:12px;}.nova25 .product-badge {position:absolute;top:0;left:0;border-radius:var(--nova25-border-radius) 0 20px 0;padding:8px 16px 8px 12px;display:flex;align-items:center;gap:4px;font-size:12px;font-weight:600;box-shadow:0 4px 16px rgba(0, 0, 0, 0.4);border-right:2px solid white;border-bottom:2px solid white;z-index:10;transition:all 0.3s ease;}.nova25 .product-badge:hover {transform:scale(1.03);box-shadow:0 6px 20px rgba(0, 0, 0, 0.3);}.nova25 .product-badge i {font-size:16px;display:flex;align-items:center;justify-content:center;width:18px;height:18px;}.nova25 .product-badge i:before { vertical-align:unset;}.nova25 .badge-title {font-weight:600;}@keyframes badgeSlideIn {from {opacity:0;transform:translateX(20px) scale(0.8);}to {opacity:1;transform:translateX(0) scale(1);}}.nova25 .product-card-header + .product-card-container {border-top:none;}.nova25 .product-title-link {text-decoration:none;color:var(--nova25-title-color);}.nova25 .product-title {font-size:20px !important; line-height:1.3 !important; font-weight:600 !important;margin:0 0 10px 0 !important;color:var(--nova25-title-color) !important;transition:var(--nova25-transition) !important;text-transform:none !important;text-decoration:none !important;letter-spacing:normal !important;word-spacing:normal !important;padding:0 !important;border:none !important;background:none !important;}.nova25 .product-title-link:hover .product-title {color:var(--nova25-primary-color);}.nova25 .product-brand {color:var(--nova25-light-text);font-size:14px;margin-bottom:8px;}.nova25 .product-rating-section {margin-bottom:15px;}.nova25 .amazon-rating {display:flex;align-items:center;gap:8px;}.nova25 .amazon-rating img {height:16px !important;width:auto !important;vertical-align:middle !important;margin:0 !important;}.nova25 .review-count {color:var(--nova25-light-text);font-size:14px;font-weight:500;line-height:1;}.nova25 .product-highlights {flex-grow:1;margin-bottom:20px;}.nova25 .features-list {padding:0 !important;padding-left:0 !important;margin:0 !important;list-style:none !important;list-style-type:none !important;counter-reset:none !important;quotes:none !important;}.nova25 .features-list li {margin-bottom:10px !important;position:relative !important;padding-left:25px !important;display:flex !important;align-items:flex-start !important;padding-right:0 !important;padding-top:0 !important;padding-bottom:0 !important;margin-left:0 !important;margin-right:0 !important;margin-top:0 !important;list-style:none !important;background:none !important;border:none !important;}.nova25 .features-list li::before {content:\"\";position:absolute;left:0;top:50%;transform:translateY(-50%);width:16px;height:16px;background-image:url(\"data:image\/svg+xml;charset=utf-8,%3Csvg xmlns='http:\/\/www.w3.org\/2000\/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%234CAF50' d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'\/%3E%3C\/svg%3E\");background-repeat:no-repeat;background-size:contain;}.nova25 .feature-text {flex:1;font-size:calc(14px * var(--nova25-features-font-size) \/ 100) !important;line-height:1.4 !important;color:#666666 !important;}.nova25 .product-description {font-size:14px;line-height:1.5;color:#666666;margin:0;}.nova25 .product-purchase-section {margin-top:auto;}.nova25 .price-section {margin-bottom:15px;}.nova25 .price-display {display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;margin-bottom:5px;}.nova25 .current-price {font-size:24px;font-weight:700;color:var(--nova25-price-color);}.original-price {font-size:16px;text-decoration:line-through;color:var(--nova25-light-text);}.nova25 .discount-badge {background-color:var(--nova25-discount-color);color:white;padding:3px 8px;border-radius:4px;font-size:1em;}.nova25 .deal-badge {background-color:var(--nova25-deal-badge-color);color:white;padding:3px 8px;border-radius:4px;font-size:0.85em;font-weight:600;text-transform:uppercase;letter-spacing:0.5px;box-shadow:0 2px 4px rgba(255, 107, 53, 0.3);animation:pulse 2s infinite;}@keyframes pulse {0% {box-shadow:0 2px 4px rgba(255, 107, 53, 0.3);}50% {box-shadow:0 2px 8px rgba(255, 107, 53, 0.6);transform:scale(1.02);}100% {box-shadow:0 2px 4px rgba(255, 107, 53, 0.3);}}.nova25 .merchant-info {font-size:13px;color:var(--nova25-light-text);}.nova25 .merchant-name {font-weight:500;color:#333333;}.nova25 .price-disclaimer {font-size:12px;color:var(--nova25-light-text);margin-top:5px;line-height:1.3;}.nova25 .price-update-time {display:inline-block;margin-right:0;}.nova25 .price-details-link {color:var(--nova25-primary-color);text-decoration:none;font-weight:500;transition:var(--nova25-transition);}.nova25 .price-details-link:hover {text-decoration:underline;color:var(--nova25-button-hover-color);}.nova25 .asterisk {color:var(--nova25-primary-color);font-weight:bold;}.nova25 .primary-button .asterisk,.nova25 .secondary-button .asterisk {color:inherit;}.nova25 .action-buttons {display:flex;gap:10px;}.nova25 .primary-button,.nova25 .secondary-button,.nova25 .check-availability-button {display:inline-block !important;padding:var(--nova25-button-padding) calc(var(--nova25-button-padding) * 2) !important;font-weight:600 !important;text-align:center !important;border-radius:var(--nova25-border-radius) !important;text-decoration:none !important;transition:var(--nova25-transition) !important;font-size:15px !important;border:none !important;outline:none !important;cursor:pointer !important;vertical-align:baseline !important;line-height:1.4 !important;letter-spacing:normal !important;text-transform:none !important;word-spacing:normal !important;white-space:nowrap !important;box-sizing:border-box !important;font:var(--nova25-button-font) !important;}.nova25 .primary-button {background-color:var(--nova25-primary-color) !important;color:var(--nova25-button-text-color) !important;flex:2;box-shadow:0 2px 5px rgba(255, 106, 0, 0.3);}.nova25 .primary-button:hover {background-color:var(--nova25-button-hover-color) !important;box-shadow:0 4px 8px rgba(255, 106, 0, 0.4);}.nova25 .secondary-button {background-color:var(--nova25-secondary-button-color) !important;color:var(--nova25-secondary-button-text-color) !important;border:1px solid var(--nova25-border-color) !important;flex:1 !important;}.nova25 .secondary-button:hover {background-color:var(--nova25-secondary-button-hover-color) !important;}.nova25 .unavailable-notice {text-align:center;padding:15px;background-color:#f8f8f8;border-radius:var(--nova25-border-radius);border:1px solid var(--nova25-border-color);}.nova25 .unavailable-notice p {color:#e53935;font-weight:600;margin:0 0 10px;}.nova25 .check-availability-button {background-color:var(--nova25-primary-color);color:var(--nova25-button-text-color);border:1px solid var(--nova25-border-color);display:inline-block;}.nova25 .check-availability-button:hover {background-color:var(--nova25-button-hover-color) !important;}@media (max-width:768px) {.nova25 .product-container {flex-direction:column !important;width:100% !important;}.nova25 .product-image-section,.nova25 .product-info-section {flex:0 0 100% !important;width:100% !important;max-width:none !important;}.nova25 .product-image-section {padding:15px !important;}.nova25 .product-image {max-height:200px !important;}.nova25 .image-slideshow {position:relative !important;height:auto !important;}.nova25 .slideshow-container {position:relative !important;height:auto !important;overflow:visible !important;}.nova25 .slides {position:relative !important;height:auto !important;}.nova25 .slide {position:static !important;opacity:1 !important;display:none !important;}.nova25 .slide.active {display:block !important;position:static !important;}.nova25.asa2-product-box {margin:15px auto !important;max-width:100% !important;}.nova25 .product-badge {position:static !important;display:inline-block !important;width:auto !important;margin:0 0 15px 0 !important;font-size:12px !important;padding:8px 12px !important;border-radius:var(--nova25-border-radius) 0 20px 0 !important;border-right:2px solid white !important;border-bottom:2px solid white !important;white-space:nowrap !important; animation:none !important; }.nova25 .product-badge .badge-title {white-space:nowrap !important;}.nova25 .product-badge i {font-size:12px !important;width:14px !important;height:14px !important;margin-right:6px;display:inline-block !important;}.nova25 .product-badge i:before {vertical-align:text-bottom;font-size:16px;}}@media (max-width:480px) {.nova25 .action-buttons {flex-direction:column !important;gap:8px !important;}.nova25 .primary-button,.nova25 .secondary-button {width:100% !important;margin:0 !important;flex:none !important;}.nova25 .product-title {font-size:18px !important;}.nova25 .current-price {font-size:22px !important;}.nova25.asa2-product-box {margin:10px 5px !important;}}.nova25 * {box-sizing:border-box;}.nova25 *:before,.nova25 *:after {box-sizing:border-box;}<\/style><style type=\"text\/css\">.asa2-product-box a[rel*=\"sponsored\"]::after {content:none !important; mask:none !important;-webkit-mask:none !important;background:none !important;display:none !important; }.product-title .asterisk {color:currentColor !important; }.asa2-product-box .asterisk {position:relative; }.asa2-product-box .asterisk::after {content:\"\";display:inline-block;height:0.8em; aspect-ratio:32 \/ 32; margin-left:0.3em; mask:url(\"..\/wp-content\/uploads\/external_link.svg\") no-repeat center \/ contain; -webkit-mask:url(\"..\/wp-content\/uploads\/external_link.svg\") no-repeat center \/ contain;background-color:currentColor; }<\/style>\n<div class=\"asa2_ca772640df5b34ab92d66cc6dad8f90c\" data-tpl=\"Nova25\">\n<div class=\"asa2-product-box nova25\">\n                    <div class=\"product-container\">\n        <div class=\"product-image-section\">\n                            <a href=\"https:\/\/www.amazon.com\/dp\/1476753830?tag=inven4us09-20\" target=\"_blank\" rel=\"nofollow sponsored noopener\" data-linktype=\"image\" class=\"product-image-wrapper\">\n                                            <img decoding=\"async\" src=\"https:\/\/m.media-amazon.com\/images\/I\/514k51KKXAL._SL500_.jpg\" alt=\"Salt, Fat, Acid, Heat: Mastering the Elements of Good Cooking\" class=\"product-image\">\n                                    <\/a>\n                    <\/div>\n        \n        <div class=\"product-info-section\">\n            <div class=\"product-header\">\n                <a href=\"https:\/\/www.amazon.com\/dp\/1476753830?tag=inven4us09-20\" target=\"_blank\" rel=\"nofollow sponsored noopener\" data-linktype=\"title\" class=\"product-title-link\">\n                    <h3 class=\"product-title\">Salt, Fat, Acid, Heat: Mastering the Elements of Good Cooking <span class=\"asterisk\">*<\/span><\/h3>\n                <\/a>\n                \n                                \n                <div class=\"product-rating-section\">\n                                    <\/div>\n            <\/div>\n            \n            <div class=\"product-highlights\">\n                            <\/div>\n            \n            <div class=\"product-purchase-section\">\n                                    <div class=\"price-section\">\n                        <div class=\"price-display\">\n                            <span class=\"current-price\">$24.57<\/span>\n                                            \n                                                        <\/div>\n                        \n                                                \n                                                    <div class=\"price-disclaimer\">\n                                <span class=\"price-update-time\">As of: January 28, 2026 7:30 PM<\/span> &#8211; <a href=\"#asa2_ca772640df5b34ab92d66cc6dad8f90c-price-modal\" class=\"price-details-link asa2-price-modal\">Details<\/a>                            <\/div>\n                                            <\/div>\n                    \n                                        <div class=\"action-buttons\">\n                        <a href=\"https:\/\/www.amazon.com\/dp\/1476753830?tag=inven4us09-20\" target=\"_blank\" rel=\"nofollow sponsored noopener\" data-linktype=\"button\" class=\"primary-button\">\n                            View on Amazon <span class=\"asterisk\">*<\/span>\n                        <\/a>\n                                            <\/div>\n                                                <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n<\/div>\n\n<div id=\"asa2_ca772640df5b34ab92d66cc6dad8f90c-price-modal\" class=\"asa2-price-modal-overlay\">\n    <div class=\"asa2-price-modal-popup\">\n        <a class=\"asa2-price-modal-close\" href=\"#close\">&times;<\/a>\n        <div class=\"asa2-price-modal-content\">\n            Product prices and availability are accurate as of the date\/time indicated and are subject to change. Any price and availability information displayed on https:\/\/www.amazon.com\/ at the time of purchase will apply to the purchase of this product.\n        <\/div>\n    <\/div>\n<\/div>\n<\/div><\/div>\n<\/div>\n\n\n\n<h2 id=\"why-does-this-happen\" class=\"wp-block-heading\">Why Does This Happen?<\/h2>\n\n\n\n<p>When you log in, your browser receives an authentication token. This token is only valid for a limited time. When it expires, you are automatically logged out and must log in again.<\/p>\n\n\n\n<p>The duration for which a session remains active without re-login is called <strong>session length<\/strong> or <strong>token lifetime<\/strong>. With Mealie, you can easily adjust this via a configuration variable.<\/p>\n\n\n\n<p>In this article, we show you how you can set Mealie&#8217;s session length yourself.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-normal-font-size\">Requirement: You run Mealie via <strong>Docker<\/strong> (e.g., with <code>docker-compose<\/code>).<\/p>\n<\/blockquote>\n\n\n<div class=\"\" style=\"\"><style type=\"text\/css\">.asa2-product-box a[rel*=\"sponsored\"]::after {content:none !important; mask:none !important;-webkit-mask:none !important;background:none !important;display:none !important; }.product-title .asterisk {color:currentColor !important; }.asa2-product-box .asterisk {position:relative; }.asa2-product-box .asterisk::after {content:\"\";display:inline-block;height:0.8em; aspect-ratio:32 \/ 32; margin-left:0.3em; mask:url(\"..\/wp-content\/uploads\/external_link.svg\") no-repeat center \/ contain; -webkit-mask:url(\"..\/wp-content\/uploads\/external_link.svg\") no-repeat center \/ contain;background-color:currentColor; }<\/style>\n<div class=\"asa2_c9a67c97f0fd8853cbc7b938a3be56ca\" data-tpl=\"Nova25\">\n<div class=\"asa2-product-box nova25\">\n                    <div class=\"product-container\">\n        <div class=\"product-image-section\">\n                            <a href=\"https:\/\/www.amazon.com\/dp\/B0BL5WZ6HF?tag=inven4us09-20\" target=\"_blank\" rel=\"nofollow sponsored noopener\" data-linktype=\"image\" class=\"product-image-wrapper\">\n                                            <img decoding=\"async\" src=\"https:\/\/m.media-amazon.com\/images\/I\/61EMYIy0jFL._AC_SL500_.jpg\" alt=\"Amazon Fire HD 10 tablet (newest model) built for relaxation, 10.1&quot; vibrant\" class=\"product-image\">\n                                    <\/a>\n                    <\/div>\n        \n        <div class=\"product-info-section\">\n            <div class=\"product-header\">\n                <a href=\"https:\/\/www.amazon.com\/dp\/B0BL5WZ6HF?tag=inven4us09-20\" target=\"_blank\" rel=\"nofollow sponsored noopener\" data-linktype=\"title\" class=\"product-title-link\">\n                    <h3 class=\"product-title\">Amazon Fire HD 10 tablet (newest model) built for relaxation, 10.1&quot; vibrant&#8230; <span class=\"asterisk\">*<\/span><\/h3>\n                <\/a>\n                \n                                \n                <div class=\"product-rating-section\">\n                                    <\/div>\n            <\/div>\n            \n            <div class=\"product-highlights\">\n                                                            <p class=\"product-description\">\u2705 Perfect for conveniently displaying Mealie recipes on a tablet in the kitchen.<\/p>\n                                                <\/div>\n            \n            <div class=\"product-purchase-section\">\n                                    <div class=\"price-section\">\n                        <div class=\"price-display\">\n                            <span class=\"current-price\">$139.99<\/span>\n                                            \n                                                        <\/div>\n                        \n                                                \n                                                    <div class=\"price-disclaimer\">\n                                <span class=\"price-update-time\">As of: January 28, 2026 8:01 PM<\/span> &#8211; <a href=\"#asa2_c9a67c97f0fd8853cbc7b938a3be56ca-price-modal\" class=\"price-details-link asa2-price-modal\">Details<\/a>                            <\/div>\n                                            <\/div>\n                    \n                                        <div class=\"action-buttons\">\n                        <a href=\"https:\/\/www.amazon.com\/dp\/B0BL5WZ6HF?tag=inven4us09-20\" target=\"_blank\" rel=\"nofollow sponsored noopener\" data-linktype=\"button\" class=\"primary-button\">\n                            View on Amazon <span class=\"asterisk\">*<\/span>\n                        <\/a>\n                                            <\/div>\n                                                <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n<\/div>\n\n<div id=\"asa2_c9a67c97f0fd8853cbc7b938a3be56ca-price-modal\" class=\"asa2-price-modal-overlay\">\n    <div class=\"asa2-price-modal-popup\">\n        <a class=\"asa2-price-modal-close\" href=\"#close\">&times;<\/a>\n        <div class=\"asa2-price-modal-content\">\n            Product prices and availability are accurate as of the date\/time indicated and are subject to change. Any price and availability information displayed on https:\/\/www.amazon.com\/ at the time of purchase will apply to the purchase of this product.\n        <\/div>\n    <\/div>\n<\/div>\n<\/div>\n\n\n<h2 id=\"why-should-you-increase-the-token-lifetime\" class=\"wp-block-heading\">Why Should You Increase the Token Lifetime?<\/h2>\n\n\n\n<p>Mealie generally does not contain highly sensitive data, but &#8220;only&#8221; recipes and shopping lists. Additionally, it is often operated in a private, domestic environment.<\/p>\n\n\n\n<p>In such scenarios, for many users the convenience gain from a longer session duration outweighs the purely theoretical, minimally increased security risk. After all, you don&#8217;t want to have to log in again constantly while cooking.<\/p>\n\n\n\n<h2 id=\"the-solution-increase-token-time\" class=\"wp-block-heading\">The Solution: Increase <code>TOKEN_TIME<\/code><\/h2>\n\n\n\n<p>Mealie provides a suitable environment variable for this. In the official documentation<sup data-fn=\"62b5160c-9352-4bb3-87af-e196f09f43c4\" class=\"fn\"><a id=\"62b5160c-9352-4bb3-87af-e196f09f43c4-link\" href=\"#62b5160c-9352-4bb3-87af-e196f09f43c4\">1<\/a><\/sup>, you can find the following:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\">TOKEN_TIME<\/td><td class=\"has-text-align-center\" data-align=\"center\"><em>default:<\/em><br>48<\/td><td>The time in hours that a login\/auth token is valid. Must be &lt;= 9600 (400 days, in hours).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The relevant parameter is called <strong><code>TOKEN_TIME<\/code><\/strong> and is specified in <strong>hours<\/strong>. If you want to log in only every <strong>30 days<\/strong> instead of every two days, that corresponds to <strong>720 hours<\/strong>.<\/p>\n\n\n\n<p>Add the parameter to your <code>docker-compose.yml<\/code> in the <code>environment<\/code> section, for example like this:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro padding-bottom-disabled cbp-has-line-numbers cbp-blur-enabled\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(2 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(201, 218, 248, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>services:\n  mealie:\n    image: ghcr.io\/mealie-recipes\/mealie:latest\n    ...\n    environment:\n      # Set backend ENV variables here\n      ALLOW_SIGNUP: false\n      TOKEN_TIME: 720 # defines how long the authentication token is valid (in hours)\n      PUID: 1026 # enter the UID of the user who created the folder on the host system for the bind mount\n      PGID: 100 # enter the GID of the user who created the folder on the host system for the bind mount\n      ...<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #8FBCBB\">services<\/span><span style=\"color: #ECEFF4\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #8FBCBB\">mealie<\/span><span style=\"color: #ECEFF4\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #8FBCBB\">image<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">ghcr.io\/mealie-recipes\/mealie:latest<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #B48EAD\">...<\/span><\/span>\n<span class=\"line cbp-line-highlight cbp-no-blur\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #8FBCBB\">environment<\/span><span style=\"color: #ECEFF4\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">      <\/span><span style=\"color: #616E88\"># Set backend ENV variables here<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">      <\/span><span style=\"color: #8FBCBB\">ALLOW_SIGNUP<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">false<\/span><\/span>\n<span class=\"line cbp-line-highlight cbp-no-blur\"><span style=\"color: #D8DEE9FF\">      <\/span><span style=\"color: #8FBCBB\">TOKEN_TIME<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">720<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #616E88\"># defines how long the authentication token is valid (in hours)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">      <\/span><span style=\"color: #8FBCBB\">PUID<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">1026<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #616E88\"># enter the UID of the user who created the folder on the host system for the bind mount<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">      <\/span><span style=\"color: #8FBCBB\">PGID<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">100<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #616E88\"># enter the GID of the user who created the folder on the host system for the bind mount<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">      <\/span><span style=\"color: #B48EAD\">...<\/span><\/span><\/code><\/pre><span style=\"display:flex;align-items:flex-end;padding:10px;width:100%;justify-content:flex-end;background-color:#2e3440ff;color:#c8d0e0;font-size:12px;line-height:1;position:relative\"><a class=\"cbp-footer-link\" href=\"https:\/\/docs.mealie.io\/documentation\/getting-started\/installation\/sqlite\/\" style=\"color:#c8d0e0;text-decoration:none;font-weight:normal;border:none;background:none;border-radius:0;padding:0;margin:0\" target=\"_blank\" rel=\"noopener noreferrer\">Source: https:\/\/docs.mealie.io\/documentation\/getting-started\/installation\/sqlite\/  [adapted for Synology DiskStation]<\/a><\/span><\/div>\n\n\n\n<p>Then you need to <strong>restart the Mealie Docker container<\/strong> and log back in once in the Mealie web interface.<\/p>\n\n\n\n<p>From now on, your session will remain active for the specified duration \u2014 in this example, a full 30 days. \ud83c\udf7d\ufe0f\ud83d\ude0a<\/p>\n\n\n\n<h2 id=\"sources-and-further-information\" class=\"wp-block-heading\">Sources and further information<\/h2>\n\n\n\n<p class=\"has-d-8-dee-9-ff-color has-text-color\">We also have a guide on how you can install Mealie on a Synology DiskStation:<\/p>\n\n\n\n<div class=\"wp-block-buttons has-d-8-dee-9-ff-color has-text-color is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-a89b3969 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-75\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/www.thing-king.de\/rezeptverwaltung-mealie-als-docker-container-ueber-portainer-auf-synology-diskstation-installieren\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Install Recipe Manager <strong>&#8220;Mealie&#8221;<\/strong><\/strong> as a Docker container &#8211;<br>via Portainer on a Synology DiskStation<\/a><\/div>\n<\/div>\n\n\n<ol class=\"wp-block-footnotes\"><li id=\"62b5160c-9352-4bb3-87af-e196f09f43c4\"><a href=\"https:\/\/docs.mealie.io\/documentation\/getting-started\/installation\/backend-config\/#general\" target=\"_blank\" rel=\"noreferrer noopener\">Mealie Backend Configuration &#8211; API Environment Variables<\/a> <a href=\"#62b5160c-9352-4bb3-87af-e196f09f43c4-link\" aria-label=\"Jump to footnote reference 1\">\u21a9\ufe0e<\/a><\/li><\/ol>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"has-text-align-center has-tiny-font-size\">Cover image created with AI assistance (chatGPT, OpenAI)<\/p>\n\n\n\n<p><\/p>\n<p><aside class=\"affiliate-marker-disclosure\">Commission links (affiliate links): The links marked with an asterisk (*) are commission links, also known as affiliate links. If you buy something via such a link, we receive a commission from the corresponding online store or supplier. Thus, as an Amazon Associate (and partner of other stores), we earn from qualifying purchases. There are no additional costs or other disadvantages for you.<\/aside><\/p>","protected":false},"excerpt":{"rendered":"<p>If you self-host Mealie, you know the problem: You open the recipe management software because you want to cook something \u2013 and you&#8217;re greeted with the login screen. You have to enter your username and password again, even though you feel like you logged in just recently. By default, Mealie automatically logs you out every [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":372,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"[{\"content\":\"<a href=\\\"https:\/\/docs.mealie.io\/documentation\/getting-started\/installation\/backend-config\/#general\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">Mealie Backend Configuration - API Environment Variables<\/a>\",\"id\":\"62b5160c-9352-4bb3-87af-e196f09f43c4\"}]"},"categories":[11,14],"tags":[],"class_list":["post-363","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nas","category-synology-diskstation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Mealie: Logged out after two days? How to extend session duration and reduce re-logins - Thing King - Technology &amp; DIY<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mealie: Logged out after two days? How to extend session duration and reduce re-logins - Thing King - Technology &amp; DIY\" \/>\n<meta property=\"og:description\" content=\"If you self-host Mealie, you know the problem: You open the recipe management software because you want to cook something \u2013 and you&#8217;re greeted with the login screen. You have to enter your username and password again, even though you feel like you logged in just recently. By default, Mealie automatically logs you out every [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/\" \/>\n<meta property=\"og:site_name\" content=\"Thing King - Technology &amp; DIY\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-29T00:46:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-03T01:05:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.thing-king.de\/en\/wp-content\/uploads\/sites\/2\/2026\/01\/mealie_token-time.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1536\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Thing King\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Thing King\" \/>\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:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/\"},\"author\":{\"name\":\"Thing King\",\"@id\":\"https:\/\/www.thing-king.de\/en\/#\/schema\/person\/b37807d0c64956915dcf094184391db8\"},\"headline\":\"Mealie: Logged out after two days? How to extend session duration and reduce re-logins\",\"datePublished\":\"2026-01-29T00:46:58+00:00\",\"dateModified\":\"2026-02-03T01:05:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/\"},\"wordCount\":443,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.thing-king.de\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.thing-king.de\/en\/wp-content\/uploads\/sites\/2\/2026\/01\/mealie_token-time.png\",\"articleSection\":[\"NAS\",\"Synology Diskstation\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/\",\"url\":\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/\",\"name\":\"Mealie: Logged out after two days? How to extend session duration and reduce re-logins - Thing King - Technology &amp; DIY\",\"isPartOf\":{\"@id\":\"https:\/\/www.thing-king.de\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.thing-king.de\/en\/wp-content\/uploads\/sites\/2\/2026\/01\/mealie_token-time.png\",\"datePublished\":\"2026-01-29T00:46:58+00:00\",\"dateModified\":\"2026-02-03T01:05:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#primaryimage\",\"url\":\"https:\/\/www.thing-king.de\/en\/wp-content\/uploads\/sites\/2\/2026\/01\/mealie_token-time.png\",\"contentUrl\":\"https:\/\/www.thing-king.de\/en\/wp-content\/uploads\/sites\/2\/2026\/01\/mealie_token-time.png\",\"width\":1536,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\/\/www.thing-king.de\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mealie: Logged out after two days? How to extend session duration and reduce re-logins\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.thing-king.de\/en\/#website\",\"url\":\"https:\/\/www.thing-king.de\/en\/\",\"name\":\"Thing King - Technology & DIY\",\"description\":\"Smart Home (Home Assistant), NAS (Synology Diskstation), DIY projects (Arduino, Raspberry Pi), 3D printer (Anet E10) and much more\",\"publisher\":{\"@id\":\"https:\/\/www.thing-king.de\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.thing-king.de\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.thing-king.de\/en\/#organization\",\"name\":\"Thing King - Technology & DIY\",\"url\":\"https:\/\/www.thing-king.de\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.thing-king.de\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.thing-king.de\/en\/wp-content\/uploads\/sites\/2\/2022\/11\/cropped-thing-king-Logo.png\",\"contentUrl\":\"https:\/\/www.thing-king.de\/en\/wp-content\/uploads\/sites\/2\/2022\/11\/cropped-thing-king-Logo.png\",\"width\":220,\"height\":146,\"caption\":\"Thing King - Technology & DIY\"},\"image\":{\"@id\":\"https:\/\/www.thing-king.de\/en\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.thing-king.de\/en\/#\/schema\/person\/b37807d0c64956915dcf094184391db8\",\"name\":\"Thing King\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mealie: Logged out after two days? How to extend session duration and reduce re-logins - Thing King - Technology &amp; DIY","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:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/","og_locale":"en_US","og_type":"article","og_title":"Mealie: Logged out after two days? How to extend session duration and reduce re-logins - Thing King - Technology &amp; DIY","og_description":"If you self-host Mealie, you know the problem: You open the recipe management software because you want to cook something \u2013 and you&#8217;re greeted with the login screen. You have to enter your username and password again, even though you feel like you logged in just recently. By default, Mealie automatically logs you out every [&hellip;]","og_url":"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/","og_site_name":"Thing King - Technology &amp; DIY","article_published_time":"2026-01-29T00:46:58+00:00","article_modified_time":"2026-02-03T01:05:12+00:00","og_image":[{"width":1536,"height":1024,"url":"https:\/\/www.thing-king.de\/en\/wp-content\/uploads\/sites\/2\/2026\/01\/mealie_token-time.png","type":"image\/png"}],"author":"Thing King","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Thing King","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#article","isPartOf":{"@id":"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/"},"author":{"name":"Thing King","@id":"https:\/\/www.thing-king.de\/en\/#\/schema\/person\/b37807d0c64956915dcf094184391db8"},"headline":"Mealie: Logged out after two days? How to extend session duration and reduce re-logins","datePublished":"2026-01-29T00:46:58+00:00","dateModified":"2026-02-03T01:05:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/"},"wordCount":443,"commentCount":2,"publisher":{"@id":"https:\/\/www.thing-king.de\/en\/#organization"},"image":{"@id":"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thing-king.de\/en\/wp-content\/uploads\/sites\/2\/2026\/01\/mealie_token-time.png","articleSection":["NAS","Synology Diskstation"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/","url":"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/","name":"Mealie: Logged out after two days? How to extend session duration and reduce re-logins - Thing King - Technology &amp; DIY","isPartOf":{"@id":"https:\/\/www.thing-king.de\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#primaryimage"},"image":{"@id":"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thing-king.de\/en\/wp-content\/uploads\/sites\/2\/2026\/01\/mealie_token-time.png","datePublished":"2026-01-29T00:46:58+00:00","dateModified":"2026-02-03T01:05:12+00:00","breadcrumb":{"@id":"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#primaryimage","url":"https:\/\/www.thing-king.de\/en\/wp-content\/uploads\/sites\/2\/2026\/01\/mealie_token-time.png","contentUrl":"https:\/\/www.thing-king.de\/en\/wp-content\/uploads\/sites\/2\/2026\/01\/mealie_token-time.png","width":1536,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/www.thing-king.de\/en\/mealie-logged-out-after-two-days-how-to-extend-session-duration-and-reduce-re-logins\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/www.thing-king.de\/en\/"},{"@type":"ListItem","position":2,"name":"Mealie: Logged out after two days? How to extend session duration and reduce re-logins"}]},{"@type":"WebSite","@id":"https:\/\/www.thing-king.de\/en\/#website","url":"https:\/\/www.thing-king.de\/en\/","name":"Thing King - Technology & DIY","description":"Smart Home (Home Assistant), NAS (Synology Diskstation), DIY projects (Arduino, Raspberry Pi), 3D printer (Anet E10) and much more","publisher":{"@id":"https:\/\/www.thing-king.de\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.thing-king.de\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.thing-king.de\/en\/#organization","name":"Thing King - Technology & DIY","url":"https:\/\/www.thing-king.de\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thing-king.de\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.thing-king.de\/en\/wp-content\/uploads\/sites\/2\/2022\/11\/cropped-thing-king-Logo.png","contentUrl":"https:\/\/www.thing-king.de\/en\/wp-content\/uploads\/sites\/2\/2022\/11\/cropped-thing-king-Logo.png","width":220,"height":146,"caption":"Thing King - Technology & DIY"},"image":{"@id":"https:\/\/www.thing-king.de\/en\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.thing-king.de\/en\/#\/schema\/person\/b37807d0c64956915dcf094184391db8","name":"Thing King"}]}},"_links":{"self":[{"href":"https:\/\/www.thing-king.de\/en\/wp-json\/wp\/v2\/posts\/363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thing-king.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thing-king.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thing-king.de\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thing-king.de\/en\/wp-json\/wp\/v2\/comments?post=363"}],"version-history":[{"count":7,"href":"https:\/\/www.thing-king.de\/en\/wp-json\/wp\/v2\/posts\/363\/revisions"}],"predecessor-version":[{"id":408,"href":"https:\/\/www.thing-king.de\/en\/wp-json\/wp\/v2\/posts\/363\/revisions\/408"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.thing-king.de\/en\/wp-json\/wp\/v2\/media\/372"}],"wp:attachment":[{"href":"https:\/\/www.thing-king.de\/en\/wp-json\/wp\/v2\/media?parent=363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thing-king.de\/en\/wp-json\/wp\/v2\/categories?post=363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thing-king.de\/en\/wp-json\/wp\/v2\/tags?post=363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}