How to get timeout to redirect to a specific page (using Web.config)












0














I am trying to get my website to redirect to a specific page on timeout.



I currently have the timeout working which looks like:



<sessionState timeout="1">
</sessionState>


inside of my config. However, I can't figure out how to get it to redirect to a specific page after the timeout.



I don't know if I can do it within the config folder, or should it be part of the html?



Any help much appreciated!










share|improve this question





























    0














    I am trying to get my website to redirect to a specific page on timeout.



    I currently have the timeout working which looks like:



    <sessionState timeout="1">
    </sessionState>


    inside of my config. However, I can't figure out how to get it to redirect to a specific page after the timeout.



    I don't know if I can do it within the config folder, or should it be part of the html?



    Any help much appreciated!










    share|improve this question



























      0












      0








      0







      I am trying to get my website to redirect to a specific page on timeout.



      I currently have the timeout working which looks like:



      <sessionState timeout="1">
      </sessionState>


      inside of my config. However, I can't figure out how to get it to redirect to a specific page after the timeout.



      I don't know if I can do it within the config folder, or should it be part of the html?



      Any help much appreciated!










      share|improve this question















      I am trying to get my website to redirect to a specific page on timeout.



      I currently have the timeout working which looks like:



      <sessionState timeout="1">
      </sessionState>


      inside of my config. However, I can't figure out how to get it to redirect to a specific page after the timeout.



      I don't know if I can do it within the config folder, or should it be part of the html?



      Any help much appreciated!







      html asp.net razor web-config






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 12 '18 at 22:26

























      asked Dec 2 '16 at 20:59









      Sophia Price

      5711




      5711
























          1 Answer
          1






          active

          oldest

          votes


















          0














          I believe this is what you are after:
          Redirect Page After Session Time Out in ASP.Net



          I know it is not STRICTLY just web.config, but it is the best answer I could come up with.






          share|improve this answer





















          • Links to other sites do not make good answers. You should include enough information directly in your answer to sufficient answer the question, giving credit if your answer is based on someone else's work.
            – mason
            Dec 2 '16 at 22:12










          • Well, good luck Sophia, I'm going to take a break from this site for a few weeks. Too much negativity. (I'm sure this post will generate yet more)
            – Trey
            Dec 5 '16 at 14:48










          • There is no need to be upset. No one here is attacking you. We have a certain way of doing things that are designed to keep the quality on this site high. Stack Overflow is intended to be a repository of useful questions and answers. The link you posted could easily break in the future. It's important to put enough content in your answer to give a working solution, crediting others if you base your answer off their work. That's why link only answers are discouraged. It's also important to take constructive criticism and improve.
            – mason
            Dec 5 '16 at 15:05










          • Not upset, just a lot of seasonal stress. It's all good.
            – Trey
            Dec 5 '16 at 16:15






          • 1




            Thanks Trey, unfortunately the site didn't have what I was looking for but appreciate the help :)
            – Sophia Price
            Dec 6 '16 at 16:33











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f40940739%2fhow-to-get-timeout-to-redirect-to-a-specific-page-using-web-config%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          I believe this is what you are after:
          Redirect Page After Session Time Out in ASP.Net



          I know it is not STRICTLY just web.config, but it is the best answer I could come up with.






          share|improve this answer





















          • Links to other sites do not make good answers. You should include enough information directly in your answer to sufficient answer the question, giving credit if your answer is based on someone else's work.
            – mason
            Dec 2 '16 at 22:12










          • Well, good luck Sophia, I'm going to take a break from this site for a few weeks. Too much negativity. (I'm sure this post will generate yet more)
            – Trey
            Dec 5 '16 at 14:48










          • There is no need to be upset. No one here is attacking you. We have a certain way of doing things that are designed to keep the quality on this site high. Stack Overflow is intended to be a repository of useful questions and answers. The link you posted could easily break in the future. It's important to put enough content in your answer to give a working solution, crediting others if you base your answer off their work. That's why link only answers are discouraged. It's also important to take constructive criticism and improve.
            – mason
            Dec 5 '16 at 15:05










          • Not upset, just a lot of seasonal stress. It's all good.
            – Trey
            Dec 5 '16 at 16:15






          • 1




            Thanks Trey, unfortunately the site didn't have what I was looking for but appreciate the help :)
            – Sophia Price
            Dec 6 '16 at 16:33
















          0














          I believe this is what you are after:
          Redirect Page After Session Time Out in ASP.Net



          I know it is not STRICTLY just web.config, but it is the best answer I could come up with.






          share|improve this answer





















          • Links to other sites do not make good answers. You should include enough information directly in your answer to sufficient answer the question, giving credit if your answer is based on someone else's work.
            – mason
            Dec 2 '16 at 22:12










          • Well, good luck Sophia, I'm going to take a break from this site for a few weeks. Too much negativity. (I'm sure this post will generate yet more)
            – Trey
            Dec 5 '16 at 14:48










          • There is no need to be upset. No one here is attacking you. We have a certain way of doing things that are designed to keep the quality on this site high. Stack Overflow is intended to be a repository of useful questions and answers. The link you posted could easily break in the future. It's important to put enough content in your answer to give a working solution, crediting others if you base your answer off their work. That's why link only answers are discouraged. It's also important to take constructive criticism and improve.
            – mason
            Dec 5 '16 at 15:05










          • Not upset, just a lot of seasonal stress. It's all good.
            – Trey
            Dec 5 '16 at 16:15






          • 1




            Thanks Trey, unfortunately the site didn't have what I was looking for but appreciate the help :)
            – Sophia Price
            Dec 6 '16 at 16:33














          0












          0








          0






          I believe this is what you are after:
          Redirect Page After Session Time Out in ASP.Net



          I know it is not STRICTLY just web.config, but it is the best answer I could come up with.






          share|improve this answer












          I believe this is what you are after:
          Redirect Page After Session Time Out in ASP.Net



          I know it is not STRICTLY just web.config, but it is the best answer I could come up with.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 2 '16 at 21:03









          Trey

          386111




          386111












          • Links to other sites do not make good answers. You should include enough information directly in your answer to sufficient answer the question, giving credit if your answer is based on someone else's work.
            – mason
            Dec 2 '16 at 22:12










          • Well, good luck Sophia, I'm going to take a break from this site for a few weeks. Too much negativity. (I'm sure this post will generate yet more)
            – Trey
            Dec 5 '16 at 14:48










          • There is no need to be upset. No one here is attacking you. We have a certain way of doing things that are designed to keep the quality on this site high. Stack Overflow is intended to be a repository of useful questions and answers. The link you posted could easily break in the future. It's important to put enough content in your answer to give a working solution, crediting others if you base your answer off their work. That's why link only answers are discouraged. It's also important to take constructive criticism and improve.
            – mason
            Dec 5 '16 at 15:05










          • Not upset, just a lot of seasonal stress. It's all good.
            – Trey
            Dec 5 '16 at 16:15






          • 1




            Thanks Trey, unfortunately the site didn't have what I was looking for but appreciate the help :)
            – Sophia Price
            Dec 6 '16 at 16:33


















          • Links to other sites do not make good answers. You should include enough information directly in your answer to sufficient answer the question, giving credit if your answer is based on someone else's work.
            – mason
            Dec 2 '16 at 22:12










          • Well, good luck Sophia, I'm going to take a break from this site for a few weeks. Too much negativity. (I'm sure this post will generate yet more)
            – Trey
            Dec 5 '16 at 14:48










          • There is no need to be upset. No one here is attacking you. We have a certain way of doing things that are designed to keep the quality on this site high. Stack Overflow is intended to be a repository of useful questions and answers. The link you posted could easily break in the future. It's important to put enough content in your answer to give a working solution, crediting others if you base your answer off their work. That's why link only answers are discouraged. It's also important to take constructive criticism and improve.
            – mason
            Dec 5 '16 at 15:05










          • Not upset, just a lot of seasonal stress. It's all good.
            – Trey
            Dec 5 '16 at 16:15






          • 1




            Thanks Trey, unfortunately the site didn't have what I was looking for but appreciate the help :)
            – Sophia Price
            Dec 6 '16 at 16:33
















          Links to other sites do not make good answers. You should include enough information directly in your answer to sufficient answer the question, giving credit if your answer is based on someone else's work.
          – mason
          Dec 2 '16 at 22:12




          Links to other sites do not make good answers. You should include enough information directly in your answer to sufficient answer the question, giving credit if your answer is based on someone else's work.
          – mason
          Dec 2 '16 at 22:12












          Well, good luck Sophia, I'm going to take a break from this site for a few weeks. Too much negativity. (I'm sure this post will generate yet more)
          – Trey
          Dec 5 '16 at 14:48




          Well, good luck Sophia, I'm going to take a break from this site for a few weeks. Too much negativity. (I'm sure this post will generate yet more)
          – Trey
          Dec 5 '16 at 14:48












          There is no need to be upset. No one here is attacking you. We have a certain way of doing things that are designed to keep the quality on this site high. Stack Overflow is intended to be a repository of useful questions and answers. The link you posted could easily break in the future. It's important to put enough content in your answer to give a working solution, crediting others if you base your answer off their work. That's why link only answers are discouraged. It's also important to take constructive criticism and improve.
          – mason
          Dec 5 '16 at 15:05




          There is no need to be upset. No one here is attacking you. We have a certain way of doing things that are designed to keep the quality on this site high. Stack Overflow is intended to be a repository of useful questions and answers. The link you posted could easily break in the future. It's important to put enough content in your answer to give a working solution, crediting others if you base your answer off their work. That's why link only answers are discouraged. It's also important to take constructive criticism and improve.
          – mason
          Dec 5 '16 at 15:05












          Not upset, just a lot of seasonal stress. It's all good.
          – Trey
          Dec 5 '16 at 16:15




          Not upset, just a lot of seasonal stress. It's all good.
          – Trey
          Dec 5 '16 at 16:15




          1




          1




          Thanks Trey, unfortunately the site didn't have what I was looking for but appreciate the help :)
          – Sophia Price
          Dec 6 '16 at 16:33




          Thanks Trey, unfortunately the site didn't have what I was looking for but appreciate the help :)
          – Sophia Price
          Dec 6 '16 at 16:33


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f40940739%2fhow-to-get-timeout-to-redirect-to-a-specific-page-using-web-config%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Bressuire

          Vorschmack

          Quarantine