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...Using Modules a...Using Modules a...The most strange DNN problem i have never seen...The most strange DNN problem i have never seen...
Previous
 
Next
New Post
11/6/2012 4:29 AM
 

Hi,

The Situation:

1.  I am on a page of the website, i can login with admin and host account.

2. I installed a module on this page. The module is purely a layout module, there's nothing with cookie/login/authentification code.

3a. After that the module is installed, i can login and work with host account without problem on the page... Ok that's normal

3b. But with an admin account i can login and see all the edit option, but on the next postback, i am automatically log out, it's like DNN ejects me and  my credentials.... 

> Nothing  in the event viewer, no popup error, i remove the module and all is Ok, what can be wrong ???

thank you !


 

 
New Post
11/6/2012 6:42 AM
 
is it possible that the module interferes with core Javascript?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/6/2012 6:50 AM
 

Hi Sebastian,

Concerning javascript : 

Nothing special, except an ajax call :

 ""function ServerTime() {"
                   + " var timeserver = null;var time = null;"
                   + "$.ajax({url: '" + result + "',"
                   + " async: false, dataType: 'text',"
                   + " success: function(text) {"
                   + " time = new Date(text);"
                   + " }, error: function(http, message, exc) {"
                   + " time = new Date();"
                   + "}});"
             + "return time;}""

and this response : 

Response.AddHeader("Cache-Control", "no-cache, must-revalidate"); // HTTP/1.1 

   Response.AddHeader("Expires", "Fri, 1 Jan 2010 00:00:00 GMT"); // Date in the past 

        Response.AddHeader("Content-type", "text/plain");
        int offset = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).Hours;
        string timeZone = "+" + offset.ToString().PadLeft(2, '0');

        if (offset < 0)
        {
            int i = offset * -1;
            timeZone = "-" + i.ToString().PadLeft(2, '0');
        }

        String datetime = DateTime.Now.ToString("MMMM d, yyyy HH:mm:ss ") + timeZone.PadRight(5, '0');
     
        Response.AddHeader("Content-length", datetime.Length.ToString());
        Response.Write(datetime);

Do you think it can be the problem ? Is there any difference between the authentification cookies or javascript mechanism from an admin and host side  ?

thank you 


 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...The most strange DNN problem i have never seen...The most strange DNN problem i have never seen...


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