session variable lost

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

  1. #1

    Default session variable lost

    Hi,

    Some time ago I started losing session variables. Tried lots of stuff, but the
    only thing that worked was to restore my cfm files from a backup. I thought at
    the time that the cfm files were somehow getting munged... The frequency with
    which this started happening has been increasing, but each time restoring the
    cfm files in the scope of the login process fixed the error... coincidentally
    it seems.

    The problem occurs on every machine connected to the network. Ther server,
    which is running CFMX, works fine. All Systems are running WIndows XP with
    Service Pack 1, and a hotfix or two as well.

    The problem occurs as the frameset is loaded. I saw a post from another user
    suggesting a P3P policy be used, which I have done, but that did not work.

    index.cfm has a form with user name and password. User logs in successfully.
    Index.cfm runs login.cfm which sets up the session.userid variable (and it
    works). Login.cfm then runs rolemenu.cfm which loads user preferences and
    configures the user environment. Rolemenu.cfm has session.variable available.

    Next, rolemenu.cfm runs members.cfm, which loads a frameset. Each of these
    frameset <cfinclude>'s a script called header.cfm which contains common JS
    routines and also a test for session.userid, which is now lost.

    <cfif NOT isDefined('session.userid')>
    <cflocation URL="jump.html">
    </cfif>

    which returns the user to index.cfm, since the user does not appear to have
    logged on (at least that's what header.cfm thinks!)

    I'm at a loss as to what to try next. I'm now falling behind in the site
    development...

    Here's what I've tried

    Restored all above named scripts
    Restored entire site
    Rebooted server and work station
    Started/stopped IIS (5.1)
    Started/stopped CFMX
    Uninstall/Reinstall CFMX
    Add <cfheader name="p3p"...> to members.cfm, index.cfm and header.cfm
    Checked all systems for viruses, trojans etc (nothing found.. systems clean)
    Rebooted firewall/router (now I'm really grabbing at straws :-)
    Deleted site in DWMX and recreated
    Deleted site cache and recreated
    Set IE privacy to "Accept all cookies" (no privacy)

    On a previous occasion I also reinstalled the OS on both the server and two of
    the workstations, but that didn't work either.

    Any help/advice is greatly appreciated...

    thanks
    Tanya



    Rustywater Guest

  2. Similar Questions and Discussions

    1. session variable - lost
      Appllication.cfm <cfapplication sessionmanagement="yes" clientmanagement="yes"> but the session.variable wer lost from one page to another...
    2. #25465 [Opn]: Session lost, session.cookie.lifetime
      ID: 25465 User updated by: sam dot houlder at teleperfomance dot no Reported By: sam dot houlder at teleperfomance dot no...
    3. #25465 [NEW]: Session lost, session.cookie.lifetime
      From: sam dot houlder at teleperfomance dot no Operating system: Linux PHP version: 4.3.3 PHP Bug Type: Session related Bug...
    4. value of session variable gets lost
      Julian wrote: Well, this syntax is not correct. It sould be: <A href="<%= session("wherewasit") %>"> click here </A> but now the Again,...
    5. [SESSION] Session variable deleted prior to command?
      Hi all, I'm developing a database system on my local computer (OS/version details at bottom) with a simple user authentication using sessions. On...
  3. #2

    Default Re: session variable lost

    can you tell me what you have in your Application.cfm file?

    I don't know how you are running your application, but I would try this
    thing.. in your Application.cfm file have,

    <cfapplication sessionmanagement="yes" clientmanagement="yes"
    setclientcookies="yes">

    adonis1976 Guest

  4. #3

    Default Re: session variable lost

    I had a similar problem some time ago.

    Have a look at this technote it may descirbe what is happening.

    Missing session variables when using the cflocation tag
    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18171[/url]

    MikeDon 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