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 ...Authentication lost Authentication lost
Previous
 
Next
New Post
12/29/2006 9:53 AM
 

I have a custom module that opens a new browser on the click of a link button.  If user clicks new window open then refreshes dnn (3.3.5), authentication is lost and user is logged out.  This can easily be replicated by adding a button to the dnn file manager, clicking to open the new window, then clicking "refresh" on dnn file manager.  What is happening and how can I prevent it?

Javascript to open the window is called via:
<span style="CURSOR: hand" onclick="return launchUpload();"><img id="dnn_ctr411_fileManager_lnkUpload" name="lnkUpload" src="/desktopmodules/mymodule/images/ToolBarUploadEnabled.gif" alt="Upload" border="0" /><span id="dnn_ctr411_fileManager_lblUpload" class="Normal">Upload </span>

Javascript to open the window is typical:

<script language="javascript">
function launchUpload(){
 var strBar = 'directories=no,location=no,menubar=no,titlebar=no,toolbar=no,scrollbars=no,width=480,height=370,resizeable=no';
 var strLoc = 'http://url/desktopmodules/customModule/viewCtrlXl.aspx';
 var winEdit = open(strLoc,'newWindow',strBar);}
</script>
 
New Post
12/29/2006 10:05 AM
 

 

Anytime you call an external page in the DNN framework you need to either have the portalid or the tabid on the querystring so that the request can be authenticated to the proper portal.

If it can't authenticate then DNN will remove the auth cookie to make you login again.


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Authentication lost Authentication lost


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