DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Redirect to login or Welcome Page on Session timeout

 5 Replies
 2 Subscribed to this topic
 31 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 12
New Around Here

    Hello,

    Do we have any configuration within the framework which allows to redirect to login or welcome page, if session timeout on a page. For instance we have DNN search page, if session timeout it shoudl redirect to welcome or login page. And how it would work on any other page having some custom module as well.

    Thanks in advance!

    Regards,

    Alok

    Advanced Member
    Posts: 223
    Advanced Member
      There is no built-int way, I have done it a couple of times with a custom theme event, some injected script and a WebApi endpoint to refresh the session.
      New Around Here
      Posts: 12
      New Around Here

        Strange I thought I was missing some configuration. In Site behaviour we have some many settings to define tabs for different scenario. Thought we could use something from there.

        Senior Member
        Posts: 1374
        Senior Member

          I've pretty much done what Daniel suggested the few times I've needed to do it.  It's pretty easy to do, once you're familiar with the DNN extension(s) you intend to use to deploy the functionality.  

          New Around Here
          Posts: 12
          New Around Here
            I am quite aware of DNN extensions, using custom code in HttpModule, or some skin, or even in custom modules I think it can be done... But was interested if we have and tested solution for it.
            Senior Member
            Posts: 1374
            Senior Member
              Posted By Alok Agarwal on 9/26/2024 12:04 AM
              I am quite aware of DNN extensions, using custom code in HttpModule, or some skin, or even in custom modules I think it can be done... But was interested if we have and tested solution for it.

              Awesome! 💪🏽 

              This tends to be one of those things that's so easy for a developer to put together, it usually just gets built and tested in a handful of minutes.  Though, having this as a built-in feature one day would be pretty cool, too.  😎 

               

              These Forums are dedicated to the discussion of DNN Platform.

              For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

              1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
              2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
              3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
              4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
              5. No Flaming or Trolling.
              6. No Profanity, Racism, or Prejudice.
              7. Site Moderators have the final word on approving / removing a thread or post or comment.
              8. English language posting only, please.

              Would you like to help us?

              Awesome! Simply post in the forums using the link below and we'll get you started.

              Get Involved