Pass session info between Coldfusion and ASP

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Pass session info between Coldfusion and ASP

    I have one website that is Coldfusion and one that is ASP. At this time, it is
    not feasible to rewrite the ASP page to CF.

    The Coldfusion page requires a login and sets session variables. Once logged
    in, users have a link to the ASP page. I want to pass the CF session
    information to the ASP page so users don't have to log in again. Can anyone
    tell me how to do this?

    Thanks,
    c-

    chrisf1616 Guest

  2. Similar Questions and Discussions

    1. Pass FlashVars to ColdFusion page
      Hi, Is there a way to pass FlashVars values from a .swf file to a ColdFusion page ? I've got a page with a calendar, I select a date and post...
    2. Unable to pass session var between app pages
      I'm having trouble passing a session variable from a form page to multiple action pages. The form page points to the first action page, but I'm...
    3. pass info accross multiple domains - is it possible
      Hi I'm trying to pass some information accross multiple domains (there's a twist to this particular situation that makes me wonder if this is...
    4. Pass Session Variable Value to Crystal Report?
      I've got an aspx page that allows the user to select different options whenever they want to run a report. On this page, I have added an...
    5. IS it better to use session variables or pass a URL variable
      Yes, I am sure the answer starts with - It depends... Well, I am trying to get a person's name from one page to the next. The name will obviously...
  3. #2

    Default Re: Pass session info between Coldfusion and ASP

    Hi Chris,
    [CAVEAT PROGAMOR: untested code follows]
    Your transition page (which is what the link should point at) can be a form
    that has hidden fields populated with the necessary session info from CF.

    <form>
    <input type="hidden" name="sessionvarname1" value="#session.sessionvarname1#">
    [and so on....]

    Next, put a bit of Javascript at the end of the form page that automatically
    submits the form to the ASP side of the house.

    In the global.asa of your ASP app, add a section that grabs the fields and
    sets the session vars:

    <script language="VBScript">
    if (request.servervariables(HTTP_REFERER) = TheURLoftherequestingpage) then
    session("sessionvarname1") = request.form("sessionvarname1") [and so on...]
    end if
    </script>



    HTH,

    philh Guest

  4. #3

    Default Re: Pass session info between Coldfusion and ASP

    can you save the session variable as cookies?
    jorgepino Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139