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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Sessions TimeoutSessions Timeout
Previous
 
Next
New Post
5/16/2012 5:26 PM
 
all browser instances must be closed and then the browser removes any "session" cookies which have not expired yet

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
5/17/2012 9:53 AM
 
OK, I tried that feature out and that definitely works.

This question is kind of related to this issue then. I have a home page that I want the visitors to come to before they have logged in. On this page I have an account login module so they can log in directly on the home page. They log in on this page and I have configured my site so it redirects them to the main page and they can never get back to the home page because it doesn't appear in the menu. I don't want them to be able to get back to this home page because it has an account login module on it and some site information and it would look strange if they could ever get back there.

However, if they close their browser but don't close all browser instances like you mentioned above then when they reopen the site, they are put onto the home page but they are still logged in. This is the problem I was trying to avoid. Is there any way to avoid this issue? (i.e. if they choose not to close all browser instances, is it possible to configure the site so that they are put on the main page when they reopen the website?)

Note: as you mentioned in the post above, if they close all browser instances then this problem is avoided. But not everyone would choose to do this.
 
New Post
5/17/2012 1:54 PM
 
no, theres nothing we can do - this is how browsers work when storing temporary cookies I'm afraid -you can reduce the time that temporary cookies last for by changing the timeout value of the forms node in web.config and that may disguise the issue (you can also add the slidingExpiration attrbite as well and set it to true -http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.slidingexpiration.aspx )

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
5/17/2012 2:14 PM
 
Would this be the line in the web.config that I would want to change?

cookieName=".ASPXANONYMOUS" Cookie Name
cookieTimeout="100000" Cookie Timeout in minutes
cookiePath="/"

What would be a small enough timeout value to do a decent job of disguising the issue?

Also, if I were to put in the code about the sliding expiration in that URL you sent, where in the web.config file is it placed exactly? I'm not familiar with C# or the .NET languages unfortunately...

Thanks.
 
New Post
5/17/2012 5:26 PM
 

no, its the auth cookie timeout, look for the following in your web.config

<forms name=".DOTNETNUKE" protection="All" timeout="60" cookieless="UseCookies"/>


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Sessions TimeoutSessions 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