cfdocument and session variables

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

  1. #1

    Default cfdocument and session variables

    Hi,

    I am trying to output a page into pdf using the following code.

    <!--- report.cfm --->
    <cfhttp url="http://myServer/myAppFolder/myForm.jsp" method="get"
    resolveURL="true">
    <cfdocument format="pdf">
    <cfoutput>#cfhttp.filecontent#</cfoutput>
    </cfdocument>

    pdf is getting created fine. But, there are jsp session variables in
    myForm.jsp and they are not getting displayed in the pdf (Session variables do
    exist at reporting time). Any ideas please ....

    Thanks,
    vmrao

    vayumahesh Guest

  2. Similar Questions and Discussions

    1. #39833 [NEW]: Session variables overwritten by local variables (register_globals=off)
      From: sup1382 at accedo dot es Operating system: OpenBSD 3.9 PHP version: 5.2.0 PHP Bug Type: Session related Bug...
    2. #39447 [NEW]: Want to optionally handle apc_upload_progress variables using session variables
      From: krudtaa at yahoo dot com Operating system: All PHP version: 5.2.0 PHP Bug Type: Feature/Change Request Bug...
    3. PHP Session variables
      I am trying to create a site where users login and view their account details. I have successfully created a login/register page. The problem is...
    4. Session problem when setting session variables in files that are in different directories
      I am running PHP 4.3.0 on a WinXPpro machine and I recently got problem with sessions. What I am building is a loginsystem and I need to save...
    5. variables that change session variables
      Hi, I'm currently writing a mulit-page form app that uses a session to retain data from each form element in order for the user to jump between...
  3. #2

    Default Re: cfdocument and session variables

    > Hi,
    >
    > I am trying to output a page into pdf using the following code.
    >
    > <!--- report.cfm --->
    > <cfhttp url="http://myServer/myAppFolder/myForm.jsp" method="get"
    > resolveURL="true">
    > <cfdocument format="pdf">
    > <cfoutput>#cfhttp.filecontent#</cfoutput>
    > </cfdocument>
    >
    > pdf is getting created fine. But, there are jsp session variables in
    > myForm.jsp and they are not getting displayed in the pdf (Session
    variables do
    > exist at reporting time). Any ideas please ....
    Check #cfhttp.filecontent# just before cfdocument to be sure that session
    variables exist. Your cfhttp request is not sending the same variables as
    your browser would (for example JSESSIONID). You might need to pass those
    variables to myForm.jsp also.

    --
    <mack />


    Neculai Macarie Guest

  4. #3

    Default Re: cfdocument and session variables

    Hi,

    I tried <cfdump var="#session#"> before the <cfdocument> tag and it outputted
    CFID, CFTOKEN, JSESSIONID, URLTOKEN but not the the session variables 'dn' and
    'pn' I created in the jsp page. How do I get those session variables into my
    cfm page and make sure <cfhttp> tag has access to them ?

    Thanks,
    vmrao

    vayumahesh 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