{"id":12282,"date":"2026-01-31T07:03:16","date_gmt":"2026-01-31T07:03:16","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/salesforce\/?p=12282"},"modified":"2026-01-29T07:05:14","modified_gmt":"2026-01-29T07:05:14","slug":"why-salesforce-logs-you-out-after-login-as-user-and-how-to-fix-it-instantly","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/salesforce\/2026\/01\/31\/why-salesforce-logs-you-out-after-login-as-user-and-how-to-fix-it-instantly\/","title":{"rendered":"Why Salesforce Logs You Out After \u201cLogin As User\u201d- And How to Fix It Instantly"},"content":{"rendered":"\n<p>Have you ever faced this situation in Salesforce?<\/p>\n\n\n\n<p>You Login As a User, perform your testing, click <strong>Logout<\/strong>\u2026 and suddenly you\u2019re logged out of Salesforce completely.<br>Instead of returning to your <strong>Admin session<\/strong>, Salesforce redirects you straight to the login page.<\/p>\n\n\n\n<p>If this sounds familiar, don\u2019t worry &#8211; this behavior is completely expected and is controlled by a single session setting in Salesforce.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">The Setting Behind the Issue<\/mark><\/strong><\/h2>\n\n\n\n<p>This behavior is driven by a session configuration in Salesforce.<\/p>\n\n\n\n<p>Navigate to:<br><strong>Setup \u2192 Session Settings<\/strong><\/p>\n\n\n\n<p>Look for the option:<br><strong>Force relogin after Login-As-User<\/strong><\/p>\n\n\n\n<p>When this setting is enabled, Salesforce forces a <strong>full logout<\/strong> once you exit a <em>Login As User<\/em> session, instead of returning you to your original Admin login.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">How to Fix It<\/mark><\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to <strong>Setup \u2192 Session Settings<\/strong><\/li>\n\n\n\n<li><strong>Uncheck<\/strong> the option \u201c<strong>Force relogin after Login-As-User<\/strong>\u201d<\/li>\n\n\n\n<li>Click <strong>Save<\/strong><\/li>\n<\/ul>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2026\/01\/1.-Session-Settings-for-Login-As-User.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2026\/01\/1.-Session-Settings-for-Login-As-User.png\" alt=\"Session Settings for Login-As-User\"><\/a><\/center><font size=\"2\"><center><i>Session Settings for Login-As-User<\/i><\/center><\/font>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">What Happens After This?<\/mark><\/strong><\/h2>\n\n\n\n<p>Once the setting is disabled:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Logging out from a Login As User session returns you to your <strong>Admin session<\/strong><\/li>\n\n\n\n<li>You remain logged in to Salesforce<\/li>\n\n\n\n<li>There\u2019s no need to log in again<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">Why This Is Useful for Salesforce Admins<\/mark><\/strong><\/h2>\n\n\n\n<p>ThiThis small configuration tweak delivers a major productivity boost, especially for Admins who:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Frequently troubleshoot user issues<\/li>\n\n\n\n<li>Test permissions and access levels<\/li>\n\n\n\n<li>Validate profiles and permission set behavior<\/li>\n\n\n\n<li>Perform repeated testing across multiple users<\/li>\n<\/ul>\n\n\n\n<p>A simple setting that saves valuable time every single day.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">Conclusion<\/mark><\/strong><\/h2>\n\n\n\n<p>Salesforce\u2019s Force relogin after Login-As-User setting is designed for security, but it can disrupt daily admin workflows if left enabled. By adjusting this session setting, you can seamlessly switch back to your Admin session after testing without repeated logins. This quick optimization improves efficiency, streamlines troubleshooting, and makes everyday Salesforce administration smoother.<\/p>\n\n\n\n<p>By following the above blog instructions, you will be able to learn <strong>\u201cWhy Salesforce Logs You Out After \u201cLogin As User\u201d \u2013 And How to Fix It Instantly\u201c<\/strong>. If you still have queries or any related problems, don\u2019t hesitate to contact us at <a href=\"mailto:salesforce@greytrix.com\" target=\"_blank\" rel=\"noreferrer noopener\">salesforce@greytrix.com<\/a>. More details about our integration product are available on <a href=\"https:\/\/www.greytrix.com\/product\/gumu\/salesforce-sage-erp-integration#_blank\" target=\"_blank\" rel=\"noreferrer noopener\">our website<\/a> and <a href=\"https:\/\/appexchange.salesforce.com\/listingDetail?listingId=a0N30000000psM5EAI#_blank\" target=\"_blank\" rel=\"noreferrer noopener\">Salesforce AppExchange<\/a>.<\/p>\n\n\n\n<p>We hope you may find this blog resourceful and helpful. However, if you still have concerns and need more help, please contact us at <a href=\"mailto:salesforce@greytrix.com\" target=\"_blank\" rel=\"noreferrer noopener\">salesforce@greytrix.com<\/a>.<\/p>\n\n\n\n<p style=\"text-align: justify\"><b>About Us<\/b><\/br>\n<p><a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a> \u2013 a globally recognized and one of the oldest Sage Development Partner and a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners and Sage PSG across the globe. We offer Consultation, Configuration, Training and support services in out-of-the-box functionality as well as customizations to incorporate custom business rules and functionalities that require apex code incorporation into the Salesforce platform.<br><br> Greytrix has some unique solutions for Cloud CRM such as <a href=\"\">Salesforce Sage integration<\/a> for <a href=\"https:\/\/www.greytrix.com\/sage-x3-erp\/integration\/\">Sage X3<\/a>, <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/sage-100-integration\/\">Sage 100<\/a> and <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/sage-300-integration\/\">Sage 300 (Sage Accpac)<\/a>. We also offer best-in-class Cloud CRM <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/crm-development\/\">Salesforce customization and development services<\/a> along with services such as Salesforce <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/data-migration-support\/\">Data Migration<\/a>, <a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/crm-development\/\">Integrated App development<\/a>, Custom App development and Technical Support business partners and end users. Salesforce Cloud CRM integration offered by Greytrix works with Lightning web components and supports standard opportunity workflow. Greytrix GUMU&#x2122; integration for Sage ERP \u2013 Salesforce is a 5-star rated app listed on <a href=\"https:\/\/appexchange.salesforce.com\/appxListingDetail?listingId=a0N30000000psM5EAI\" target=\"_blank\" rel=\"noopener\">Salesforce AppExchange<\/a>.<br> The GUMU&#x2122; Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for processing and execution of application programs at the click of a button.<br><br> For more information on our Salesforce products and services, contact us at <a href=\"mailto:salesforce@greytrix.com\">salesforce@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n\n\n\n<p><strong>Related Posts<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/tag\/gumu-security-matrix\/\" target=\"_blank\" rel=\"noreferrer noopener\">GUMU\u2019s upcoming feature: Enhanced Security Matrix with a Dynamic Tree View!<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2024\/10\/24\/gumu-restrict-and-grant-field-access\/\" target=\"_blank\" rel=\"noreferrer noopener\">Enhance your Data Security: Master GUMU\u2019s \u2018Restrict and Grant Field Access\u2019 on the Sales Order screen<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2024\/10\/24\/gumu-restrict-and-grant-field-access\/\" target=\"_blank\" rel=\"noreferrer noopener\">Enhance your Data Security: Master GUMU\u2019s \u2018Restrict and Grant Field Access\u2019 on the Sales Order screen<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever faced this situation in Salesforce? You Login As a User, perform your testing, click Logout\u2026 and suddenly you\u2019re logged out of Salesforce completely.Instead of returning to your Admin session, Salesforce redirects you straight to the login page. If this sounds familiar, don\u2019t worry &#8211; this behavior is completely expected and is controlled\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2026\/01\/31\/why-salesforce-logs-you-out-after-login-as-user-and-how-to-fix-it-instantly\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[2568,2565,2571,2563,2457,2570,2567,2569,1984,2566],"class_list":["post-12282","post","type-post","status-publish","format-standard","hentry","category-salesforce-srv","tag-logging-audit","tag-monitoring-compliance","tag-org-management","tag-salesforce-administration","tag-salesforce-best-practices","tag-salesforce-governance","tag-salesforce-performance","tag-salesforce-platform-tools","tag-salesforce-security","tag-salesforce-setup-configuration"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/12282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/comments?post=12282"}],"version-history":[{"count":7,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/12282\/revisions"}],"predecessor-version":[{"id":12290,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/12282\/revisions\/12290"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/media?parent=12282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/categories?post=12282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/tags?post=12282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}