Session Var set onSessionStart is Undefined

Hello,
I am having an issue with a session variable becoming undefined. The var is set (cfparam) on the Application.cfc page in the onSessionStart function. How is it possible for the variable to be undefined if it is set when the session starts? If the session has expired, wouldn't the onSessionStart function run, thus creating the var again? I have this problem on a couple of different applications and I am not sure why it is happing. Any ideas?
CF9
Thanks,
Josh

JavaScript runs on the Client.  ColdFusion runs on the server.  They do not talk to each other or share memory.
The only way to get data from the client to the server is to make a request.  The only way to get data from the server to the client is to respond to a request.
You can make that request by submitting a form either in the get or post scope.
You can make that request by sumitting a request with the xmlHTTPrequest() function, commonly called AJAX.
But somehow or the other you have to make a request.

Similar Messages

  • Set session var using js

    Hi all, I have small js that is being called when a radio button is clicked. I need that to set a cf session var which will have the radio value so that when the page refresh it will remember what is selected...
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <cfif cgi.PATH_TRANSLATED CONTAINS 'index.cfm'>
      <cfoutput>
       <META HTTP-EQUIV="refresh" content="60;URL=http://#HTTP_HOST#/NEA/index.cfm?location=ALL">
      </cfoutput>
    </cfif>
             <script type="text/javascript">
             function select_location(select_me){
              window.location ="index.cfm?location=" + select_me.value;
             </script>
             <input  <cfif url.location eq "NM">checked="checked"</cfif> type="radio" name="location" id="NM" value="NM" onClick="select_location(this);"><label for="NM">NM</label> 
             <input  <cfif url.location eq "SM">checked="checked"</cfif> type="radio" name="location" id="SM" value="SM" onClick="select_location(this);"><label for="SM">SM</label> 
             <input <cfif url.location eq "BQ">checked="checked"</cfif> type="radio" name="location" id="BQ" value="BQ" onClick="select_location(this);"><label for="BQ">BQ</label> 
             <input <cfif url.location eq "MV">checked="checked"</cfif> type="radio" name="location" id="MV" value="MV" onClick="select_location(this);"><label for="MV">MV</label> 
             <input <cfif url.location eq "SI">checked="checked"</cfif> type="radio" name="location" id="SI" value="SI" onClick="select_location(this);"><label for="SI">SI</label> 
             <input <cfif url.location eq "BR">checked="checked"</cfif> type="radio" name="location" id="BR" value="BR" onClick="select_location(this);"><label for="BR">BR</label> 
             <input <cfif url.location eq "HV">checked="checked"</cfif>  type="radio" name="location" id="HV" value="HV" onClick="select_location(this);"><label for="HV">HV</label>
             <input <cfif url.location eq "ALL">checked="checked"</cfif> type="radio" name="location" id="ALL" value="ALL" onClick="select_location(this);"><label for="ALL">ALL</label><br>

    JavaScript runs on the Client.  ColdFusion runs on the server.  They do not talk to each other or share memory.
    The only way to get data from the client to the server is to make a request.  The only way to get data from the server to the client is to respond to a request.
    You can make that request by submitting a form either in the get or post scope.
    You can make that request by sumitting a request with the xmlHTTPrequest() function, commonly called AJAX.
    But somehow or the other you have to make a request.

  • Session Var

    ok, I set a session var to about 2K of text
    I have an iframe which is part of a menu navigation system.
    The content of that iframe is slow to get from the DB so I
    cache the HTML for it into a session var.
    If a user clicks a link, the iframe submits to itself, does
    a few things, and then cflocation's out to the chosen page.
    The next time this iframe is loaded( almost immediately) it
    reads the session var and it is EMPTY!
    I'm not overwriting it, not structDelete'ing it, Any time I
    set it outside of this page, it's done with a check to see
    if it isDefined first, and if so, does nothing.
    Are there known issues with CFParam? large text session vars?
    WTF?
    D.

    dnagel wrote:
    > ok, I set a session var to about 2K of text
    >
    > I have an iframe which is part of a menu navigation
    system.
    > The content of that iframe is slow to get from the DB so
    I
    > cache the HTML for it into a session var.
    >
    > If a user clicks a link, the iframe submits to itself,
    does
    > a few things, and then cflocation's out to the chosen
    page.
    >
    > The next time this iframe is loaded( almost immediately)
    it
    > reads the session var and it is EMPTY!
    >
    > I'm not overwriting it, not structDelete'ing it, Any
    time I
    > set it outside of this page, it's done with a check to
    see
    > if it isDefined first, and if so, does nothing.
    >
    > Are there known issues with CFParam? large text session
    vars?
    >
    > WTF?
    >
    >
    > D.
    So, I pulled out Fiddler, and lo and behold I was
    making a call to my page with no params at one part
    of the load and then later on, calling it again
    properly with the correct params. I'm checking
    for an empty URL param set now and all is well...
    Thanks for your time on this folks!
    D.

  • Session Vars and Local Firewalls

    I've been getting more complaints lately that session vars
    are getting lost and normally I walk them through making sure
    cookies are enabled, but now that doesn't seem to be always the
    case anymore and have finally isolated it to when they install a
    firewall. If they disable it works, but when on it doesn't. Is
    there anything I can do besides telling them not to use their
    firewall?
    Server specs:
    ColdFusion MX 6.1 on a non-clustered environment.
    User:
    Using IE and using "e-trust EZ Armor"

    I assume then, you are storing variables in cookies, rather
    than registry or database then, correct?
    Are these local firewalls? (on the actual PC) or H/W on a
    network?
    If they are local, the firewall itself may be eliminating the
    cookie storage, not the browser ... if it is, it likely has a way
    to change the settings.
    There's not much you can do if you are forced to use cookies
    for sessions (which is very common) other than altering your coding
    or having the user change their settings.
    If you have access to the CF admin, you may try setting up a
    DB service for variable storage, which is an option.

  • Delete a session var(struct)

    Is there a way to delete a session var(struct) rather then
    just clear it?
    Thanks in advance!

    I'm hoping to struct completely. Is that possible?
    I am presuming that you meant to say something like "to
    destroy the
    struct completely". If so, just set the variable to something
    else.
    I.E.
    <cfset aStruct = structNew()>
    <cfset aStruct.aKey = "foobar">
    <cfdump var="#aStruct#">
    <cfset aStruct = ""><!--- Some sort of NULL would
    probably be nice here
    but CF does not do really NULLS --->
    <cfdump var="--->#aStruct#<---">

  • Maximim Number of process and session can set in oracle 10g

    my os is 32 bit windows and ram size is 10gb and i am using AWE_WINDOW_MEMORY setting and now my sga is 6 gb.what would be Maximim Number of process and session can set in oracle 10g database

    mithun wrote:
    my os is 32 bit windows and ram size is 10gb and i am using AWE_WINDOW_MEMORY setting and now my sga is 6 gb.what would be Maximim Number of process and session can set in oracle 10g databaseThe maximum number of sessions is controlled by your database's SESSIONS parameter. This value is most derived from the PROCESSES parameter. You cannot exceed this number of sessions unless you raise the parameter value.
    If your database is configured to handle enough sessions, then Oracle can literally handle thousands of simultaneous connections, provided your database server also has enough resources to handle this number of connections. You will want to implement Oracle's Shared Server connections so that multiple connections share a pool of processes on the database server. This minimizes the resource consumption used by the connections.
    Read the following document as well.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/manproc.htm
    Thanks

  • ODI-01266: Agent {0} detected Session as stale session and set to error

    Hi
    I am a beginner in odi
    I scheduled a package to run . but this error came up :" ODI-01266: Agent {0} detected Session as stale session and set to error status"
    what is this error and what should i do???
    thanx
    medi

    Cleaning Stale Sessions
    Stale sessions are sessions that are incorrectly left in a running state after an agent or repository crash.
    The Agent that started a session automatically detects when this session becomes stale and changes it to Error status. You can manually request specific Agents to clean stale sessions in Operator Navigator or Topology Navigator.
    To clean stale sessions manually:
    Do one of the following:
    From the Operator Navigator toolbar menu, select Clean Stale Sessions.
    In Topology Navigator, from the Physical Architecture accordion, select an Agent, right-click and select Clean Stale Sessions.
    The Clean Stale Sessions Dialog opens
    In the Clean Stale Sessions Dialog specify the criteria for cleaning stale sessions:
    From the list, select the Agents that will clean their stale sessions.
    Select Clean all Agents if you want all Agents to clean their stale sessions.
    From the list, select the Work Repositories you want to clean.
    Select Clean all Work Repositories if you want to clean stale sessions in all Work Repositories.
    Click Clean to start the cleaning process.

  • AM without session failover set up?

    Generally I have at least 2 servers for redundancy and plan 2 servers to host AM behind a load balancer. Unfortunately I am unable to support message queue and berkeley sleepycat DB which is required for session failover. So I am curious what the session behavior is without the session failover set up. When one AM server goes down and the other is used does the user click on a link and is asked to login again? Wondering how graceful it is.

    Hi.
    I have been kind of struggling with session failover for sometime now (it worked perfectly with 2003Q4 though).
    Once you have a session queue / DB established, this is how things proceed:
    1. User hits load balancer, which directs him / her to one of the servers.
    2. User logs in. Load balancer maintains a sticky session. Future requests go to the same server.
    3. Say that server goes down. User clicks. Load balancer figures out that server is down, redirects user to another AM server.
    4. If you have session failover in place, user can continue to work without logging in (technically!).
    It was seamless with 2003Q4. We pulled the cable on one AM server (so resulting DS, DPS, AM and message broker all went offline), and still the user's session transitioned to the other server.
    If you do get session failover to work with 2005Q4, would be grateful if you could post something about it.

  • History not retrained between sessions, tho set to do so !?

    Browsing several sites 3 x wk'ly to read commentary,but this history is not retained between sessions tho set to do so as far as I can see after perusing Firefox repeatedly over several wks....not browsing privately , etc....recent trovi malware infestation seems negligible,???, tho I still see it in IE. Any suggestions , Thanks....L F

    In case you are using "Clear history when Firefox closes":
    *do not clear the Browsing History
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/remove-browsing-search-and-download-history
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.
    There is software like Advanced SystemCare with its Surfing Protection feature that can protect files in the Firefox profile folder against changes.
    If you have such software then check the settings or uninstall this software.
    Your System Details list shows that you have a user.js file in the profile folder to initialize prefs each time Firefox starts.
    The user.js file is only present if you or other software has created this file and normally it wouldn't be there.
    You can check its content with a plain text editor (right-click: Open with) if you didn't create this file yourself.
    The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    Delete a possible user.js file and numbered prefs-##.js files and rename (or delete) the prefs.js file to reset all prefs to the default value including prefs set via user.js and prefs that are no longer supported in the current Firefox release.
    *http://kb.mozillazine.org/Preferences_not_saved

  • Session Property Set not available in Portal Administration Console

    We have a Portal Application (WLP 10.0 MP1) that needs to have visitor entitlements applied to allow some customization based upon a Session Property Set. The property set has been defined in Workshop and the .ses file is now included in our Portal EAR file in the /META-INF/data directory. When the EAR is deployed on a local (winXP) domain the property set is then available in the portal admin console and can be used to build entitlements. When the EAR is deployed to our test server (Solaris 10) the property set does not become available in the portal admin console. Both servers are in development mode and already have a previous version of the EAR deployed in streaming mode.
    Is there anything obvious that needs to be done to ensure that a property set is enabled when deploying a new EAR?

    We are actually performing the portal EAR build using maven but are creating the same directory layout as is created by Workshop when a data sync project is used and an EAR exported, i.e. the contents of the data sync project ends up in the EAR /META-INF/data directory.
    The mystery here is that the property set correctly deploys in one environment but not in another. I'd really like to know whether there are any particular tricks to the property set deployment and what the deployent process actually does. Could issues with the target environment prevent correct deployment of the property set?

  • Session property set not updating in Portal Admin console

    Hello,
    We have a Portal application running on 10 MP1. Included in the EAR file is a session property set and is correctly stored in the right directory (META-INF/data).
    When deployed, I can view our session properties when I try to create some entitlements and expressions. However, we need to update the name of one property and when we redeployed the EAR with an updated session property file, in the Portal Admin console, the session property still has the old name.
    This happens on one of our environments, but does not happen on my local machine. On my local machine, when I look at the database, the DATA_SYNC_ITEM table is empty. But on our other environment (where the problem exists), in the database I can see relevant entries for my app and property file in the DATA_SYNC_ITEM table.
    Does anyone have any ideas why this table is not populated on my local machine and why I can't seem to update the session property file on my other environment where the table is populated?
    Any help would be much appreciated.
    Thanks,
    Jonathan

    Probably either development mode /prodiction mode differences or differences between deploying as an exploded ear (local) and a compressed ear (in your environment that doesnt work). The easiest way is to propagate the changes from your local to the other environment (you can scope it to just session properties)
    http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/prodOps/propToolAdvanced.html

  • The VTY sessions are set for SSH, is telnet still open?

    I'm in the process of enabling SSH on all of my routers, switches and firewalls.  After upgrading the IOS to one that supports SSH, generating the crypto key and then setting all of the VTY sessions to SSH only, my security team informs me that telnet is still vulnerable to IP spoofing.  They can demonstrate that when they launch a telnet session to one of my routers, the telnet session will pause for maybe 2 seconds before receivign the message that the session was terminated by the router.  They claim this indicates that the router is responding to the telnet session and before the actual disconnect is forced they could IP spoof the box and cause a DOS.
    I say boulderdash but without any proof I am forced to create a bunch of ACL's to specifically deny telnet.  Here is an example of my VTY's:
    line vty 0 4
    access-class 23 in
    exec-timeout 30 0
    password 7 xxxxxxxxxxxxx
    logging synchronous
    transport preferred ssh
    transport input ssh
    transport output ssh
    *The access list here is limiting access from a certain internal set of IP's.
    Any thoughts?

    Marcos,
    Thank you for your time on this.  I believe I have found and corrected my issue.  In my first post I showed what the vty 0 4 sessions were set as.  What I failed to show was that the "vty 5 15" sessions were only set to "no exec".  So what was happening is that when I would telnet to the router, the session attempt would either walk down the list of VTY sessions looking for an open port or the router just bypassed the ones that were set for SSH and tried the first VTY port that was set for no exec.  This would allow for the telnet session to attempt to open but because the router was not allowing access to the command line interpreter, the router would reject the session attempt.
    To correct this I simply set up all of my VTY sessions the same way, transport SSH in & transport SSH out.  The next attempt closed the telnet session immediately.  I still maintain there is no need for additional access-lists as I'm trying to keep my processor's free from any additional load to allow them to process the payload traffic as efficiently as possible.
    If anyone has any best practices they would care to leave here, I would be interested.
    Sam

  • Updating a session property set

    Hi,
    How can I update a session property set?
    I can get my properties like this: <%= session.getProperty("test_set", "groups")
    %>
    But how do I update the same set. The documentation does not mention this...
    Is it possible to um? I did not get it to work.
    But maybe I did something wrong.
    <um:getProperty id="getResult" propertySet="test" propertyName="groups_test"/>
    The above returned null.
    But after updating it with:
    <um:setProperty propertySet="test" propertyName="groups_test" value="<%= list
    %>" result="setResult"/>
    It returned something.
    br,
    Chris

    A correction: It appears that it is being set but, as the pageflow action forwards to the success page the entitlement isn't taking effect until I refresh the page I forward to.
    Any ideas on why the entitlement requires a refresh on the forwarded page?

  • How to update Session property set.

    Hi,
    How can I update a session property set?
    I can get my properties like this:
    <%= session.getProperty("test_set", "groups") %>
    But how do I update the same set.
    The documentation does not mention this...
    br,
    Chris

    Chris wrote:
    Hi,
    How can I update a session property set?
    I can get my properties like this:
    <%= session.getProperty("test_set", "groups") %>
    But how do I update the same set.
    The documentation does not mention this...
    br,
    ChrisI am not sure what you want, but you can add properties to the session
    property set in the EBCC, by adding custom properties. You should then
    be able to retrieve them programmatically.
    Jalpesh

  • OK, for the third time writing this this session, after setting up iCloud on my IPMini, how do I access the clod to use the iWork apps?

    OK, for the third time writing this this session, after setting up iCloud on my IPMini, how do I access the clod to use the iWork apps?

    Note that you can not log into iCloud.com through the browser on an iOS device, only from a computer. If you want to use the iWork apps on your iOS device, you will need to purchase the apps from the app store if you don't qualify to get them for free.

Maybe you are looking for

  • How to register multiple stages in fault handler?

    Hi, I am trying to create multiple fault handlers for multiple CQL processors. I understand how to create one handler but when I am trying to add another osgi service to rgister anothet fault handler I get strange behaviot in theeclipse. The EPN disa

  • One TOC for Multiple Documents

    Working on a book project where each chapter must be its own document (due to multiple large graphics). Is it possible for the Table of Contents (TOC) can contain info from multiple documents, or will I have to create the TOC manually when I'm done w

  • Filename problems with packages

    problem. We created Incopy packages from a file example.indd We then for various reasons changed the name of the file to newexample.indd Now we are having problems bringing the incopy files back into the file. I can see why we we might be having prob

  • ORA-04063:package body "APPS.AP_UTILITIES_PKG" has errors

    Hi, AP_UTILITIES_PKG is showing invalid status.when i m trying to compile giving below error. SQL> show error Errors for PACKAGE BODY AP_UTILITIES_PKG: LINE/COL ERROR 1033/9 PL/SQL: Statement ignored 1033/21 PLS-00905: object APPS.FND_FLEX_KEY_API is

  • Error Files in BDC

    Hi,   I had done an uploading using call transaction method. I had handled the error records in Exel sheet. But the requirement is to show only the record having the error field. For example if we have an error record like Rec no     date          Be