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
 40 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 19
New Around Here
New Poster
New Poster
Congrats on posting!

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

Veteran Member
Posts: 349
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
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: 19
New Around Here
New Poster
New Poster
Congrats on posting!

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: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

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: 19
New Around Here
New Poster
New Poster
Congrats on posting!
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: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
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 for the discussion of the open source CMS DNN platform and ecosystem.

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