Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Redirect on TimeoutRedirect on Timeout
Previous
 
Next
New Post
12/5/2007 11:07 AM
 

When a user's  session times out  I need to redirect them to a non-DNN login page.

Any idea how I could do that?

 
New Post
9/7/2009 6:24 AM
 

 Did you, or has anyone else resolved how to do this?

 
I have been using the DNNSpired DS_PortalTrafficDirector module up until now and it has been working OK.
 
However I now have a different issue:
 
I have different departments accessing the same portal and when they logout they need to be redirected to different external, NON-DNN URL’s. Now I have written a module to do this successfully.
 
However my problem is when the user is timed out – the DS_PortalTrafficDirector can redirect depending on user roles, but when a user is timed-out, the module doesn’t work – I presume because the user role information is not available.
 
Can anyone offer any suggestions as to how I can redirect different users to different sites upon time out?
 
Any help would be REALLY appreciated.
 

Blue & White hooped blood runs through my veins!
 
New Post
9/8/2009 5:10 AM
 

 POP 

Any suggestions as to how I can resolve this problem please? 

 


Blue & White hooped blood runs through my veins!
 
New Post
9/8/2009 6:42 PM
 

Your client page does not know when the server decides that the session has timed-out....you have to wait for the user to make a new server request before you can act on a timeout.
 
When the client does make a server request after a timeout, you can forward to a custom login page if your server code includes the following:
  
  if(Session["Session_name"]==null)
  Response.Redirect(”Login.aspx”);
 


 
A client-side approach would be to set a meta tag in each page to auto-forward to your special login page after the default timeout period (usually 20 minutes for IIS).  Such an approach can be accomplished in environments where you do not have access to change server code.  This simple client-side approach will not, however, take into account sessions that are extended by background asynch AJAX calls which means that, depending on your UI, you could have an active user interacting via an AJAX-enabled UI who remains on a single page and is wrongly forwarded to the login page after 20 minutes due to not having initiated a full-page refresh before the 20-minute timer is up. 
 
You can get fancy with AJAX, javascript timers and browser input event handlers to keep track of extending the session yourself while clients are active but not making server requests (when someone is filling in a very long form, for instance) and auto-forwarding to a login page after a certain period of time + session timeout.  I've done this very thing before and, though not overly hard, it's also not trivial.  I wouldn't recommend it except in cases where you want to auto-extend sessions for active users and/or you wish to warn a user of an impending timeout before the timeout actually occurs.
 
Hope that helps!
-mamlin


esmamlin atxgeek.me
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Redirect on TimeoutRedirect on Timeout


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. 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.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out