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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesloosing my cookiesloosing my cookies
Previous
 
Next
New Post
6/8/2010 5:37 PM
 
(not to be confused with 'tossing my cookies')

I need to include what this company calls a 'widget' ... is really off-site javascript... which doesn't use flash.  My idea is to use the IFrame module to insert an .aspx page that will set the user_ID cookie, initiate their 'proxy.aspx' to negotiate the delivery of the correct javascript.

My problem is,  the cookie that I create in my page (which I have located in DNNRoot /portals/_default/subDIrectory) is getting lost in the exchange.  Watching the exchange in firebug,  I can see that I get an 'oAuthToken' and 'oAuthSecret' value from the external site, but then the cookie name is not passed and the authentication fails.  I tried to set the cookie  domain value (www.mydomain.com/portals/_default/subDirectory/).. but it resulted in not storing a cookie at all.  My thinking was, I should be able to specify my subdirectory as the domain, to ensure that the cookie I sent would be used by the proxy page.

Note:   I can successfully navigate to my page (which will be imbedded in the iFrame) directly (without logging in)...  with the results described above.  Once I get the page working on its own,  then I'll try it from the DNN iFrame.

external .js files successfully load,  I can successfully create the cookie (if I don't specify domain), and other JS routines are working fine... so I've excluded that code.   The external 'widget' is called via javascript with the following code snippet:

if (jQuery.cookie("companyProduct_user_id") != null) {


             companyProduct.Api.isAuthenticated(function(success, fail) {
                 if (!fail) {
                     loadWidget();
                 }
                 else {
                     renderLoginButton();
                 }

             });


         }
         else {
             You must set your user Id.");

         }


function loadWidget() {

             CompanyProduct.Api.loadAPIWidget('myrequests', 'content', { frame: true, width: 600, autoHeight: true }, {}, false);
         }




I would like to host 'self-supported' pages such as this within the DNN framework (in addition to building web control modules) and use the framework, but don't fully understand the implications of the DNN web.config.
I am beginning to transfer SOAP and REST web services  into this DNN instance, so I would appreciate tips on where web references should be placed, and how to incorporate these 'interface methods' into DNN.

Thanks in advance
 
New Post
6/13/2010 12:05 PM
 
Can it be related to 3-rd party cookie issue?

Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesloosing my cookiesloosing my 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