Forums

Embedded Login: writing a cookie?

Last post 01-19-2009, 5:59 PM by csterritt. 2 replies.
Sort Posts: Previous Next

     09-18-2008, 2:48 PM 12791

    Embedded Login: writing a cookie?

    We have successfully gotten the embedded login to correctly authenticate a user with DE, however, when an already logged in user clicks on a weblink popup such as Event Registration, she is prompted to login again in the popup window. I'm guessing that we need to simulate the cookie that the Weblink login writes so that the popup weblinks see that we are already authenticated. Anyone know how to write that cookie? Or is there some other method for telling the weblink to write the cookie for us without the user having to login in twice?

    Thanks!

     10-01-2008, 6:36 PM 12900 in reply to 12791

    Re: Embedded Login: writing a cookie?

    Hey Seth,

    A simpler way to do this is to append the iCode to the end of the URL being accessed. The iCode is the unique code for this individual stored in their record. It's returned by DE after successful login. You can parse the returned XML to retrieve it and set it as a session variable.

    You can see how the iCode is appended to the end of the URL by using the default WebLink login page. For example, use it to log into Online Giving or Event Registration and then check out the URL.

    Appending this code will prevent the WebLink application from asking for re-authentication.


    Tara Coulson
    Advocate, Customer Experience

     01-19-2009, 5:59 PM 13496 in reply to 12900

    Re: Embedded Login: writing a cookie?

    Hi -- just curious how secure this is (not to be critical, just paranoid!).

     I'm concerned about what happens if someone bookmarks a link with the iCode in it, and (say) emails it to someone else.  Would this "automatically" get the second person in as the first, or would it notice the lack of a cookie and log them in?

     

    Thanks!

View as RSS news feed in XML