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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Persistent CookiesPersistent Cookies
Previous
 
Next
New Post
5/26/2008 1:25 AM
 

There are a couple of things I need to know about how persistent cookies are used in DNN.

First, when & what core modules set persistent cookies & what is stored in them? According to my reaserch, persistent cookies are set up only when 'Remember Me' is checked, while logging in, and user roles are encrypted & stored in it. Am I wrong or  Is there anything missing?

In that case, if I hide the 'Remember Me' option, can I be sure that no Authentication persistent cookie would be set up on the client.

Second, how do I control their behaviour. I found an element

    <add key="PersistentCookieTimeout" value="0" />
in appSettings section. Say, I want all persistent cookies to expire after 60 minutes. Would setting "60" here do the task (i.e. does this value control Persistent Cookie behaviour)???

Lastly, can in any way I request DNN to reject & reset all persistent cookies for some duration of time (say for the next 30 minutes)???

 
New Post
5/27/2008 4:49 AM
 

Hi r_honey,

the key you found was added when modifications to the core were made to allow persistent cookies to have different timeouts than normal cookies. For more informations see:

I Remember You! by Don Worthley;
Why doesn't "Remember me" work like I expect? by Cathal Connoly;
a new solution to an old problem by Cathal Connoly.

 

Any modifications to this key will affect the persistent cookie's duration.

Best regards,
Dario Rossa

 
New Post
5/27/2008 10:23 AM
 

Thanx, that cleared a lot of air on hoe DNN handles persistent cookies. Its nice to know that session & persistent cookies can be configured separately, & easily.

But, a couple of parts of the original problem are still unanswered.

1) Is Authentication the only component of DNN that sets a persistent cookie. Does any other DNN core or packaged module  sets a persistent cookie on the user browser???

2) Is there any way to request DNN to reject all persistent cookies that have been set before a specified time? If not, how can I hook into DNN's cookie handling procedure, so that I can handle this task myself??

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Persistent CookiesPersistent Cookies


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