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 ...Module action not working for unauthenticated usersModule action not working for unauthenticated users
Previous
 
Next
New Post
6/13/2007 1:18 PM
 

We have been struggling with a problem that on the surface seemed absurbly simple. We created a contact us module designed  to submit an email to an admin user with some comments from the submitter. Simple enough.

The module worked perfectly if the user was authenticated. It didn't make any difference what the user's permissions were just as long as they had logged in. However, once the user logged out the module would still display correctly but all the actions (submit button in our case) did not respond. The page would refresh but the event would not fire.

After about 8 hours of trying every DNN permission under the sun we started comparing our module to the survey module. Everything was comparable expcept for one setting - the module cache time and the corresponding default cache time (which provides the default value when the module is created). Our cache time was 60 (the default) and the survey module was 0. After changing our value to 0 the problem went away.

IMHO this is a DNN bug. If a user clicks a button requiring custom code to execute then DNN should not be serving up a cached page. At the very least the defaukt cache setting should be set to 0. I also do not understand why a cache time needs to be specified  at the module level when there are already cache settings under the host settings.

For the record, this problem was encountered on DNN 4.5.3, running on a dual core 4GB server. Caching is set to moderate (disk based).

 
New Post
6/19/2007 7:02 PM
 
I'm using XMod and I've created forms for it...

I'm experiencing this same issue...but when I looked at the module settings for XMod, the cache time was already set to 0.

Any ideas as to why the form will process when I'm logged in but won't when I'm not?
 
New Post
6/20/2007 10:31 AM
 

I am glad that you were able to get your issue resolved, however, I will disageee and say that this is NOT a bug in DNN.

Each module can have its own cache time defaults and you can specify your desired value in the .DNN file for your module.  By allowing the specification of cache time it allows the developer to determine the appropriate time to store the content before rendering.  Yes, this does break any module that has interactions with the user, that is why in the module development guides they mention setting this to zero.

Even with caching turned on at the site level you must have the module specific setting as you do not want all modules cached, and that is the only way to do it.  IMHO.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Module action not working for unauthenticated usersModule action not working for unauthenticated users


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