Problem getting session vars to stay defined

I am frustrated please help. I have used earlier versions of
CF but cf 8 is very new to me. I want to set session variables with
in the application.cfc, I thought I had it correct for session
management to be initiated, as session variables can be defined.
However using them with SSL... well - when a user accesses a page
that is under the secure socket layer the variables are undefined.
I dont understand what is occuring. This is what I have in my
application.cfc file to start session management:
<cfcomponent output="false" hint="Handles application
level events.">
<!--- Set up the application. --->
<cfset THIS.Name = "AppCFC" />
<cfset THIS.ApplicationTimeout = CreateTimeSpan( 0, 0, 60,
0 ) />
<cfset THIS.SessionManagement = true />
<cfset THIS.SetClientCookies = false />
<CFSET request.dsn = "wlaw" />
</cfcomponent>
ALL HELP IS APPRECIATED
Thank you in advance!
Mike Dooly

problem fixed!
Thank you for your input, I discovered this morning that it
was in my
application.cfc file that I had made the error... too weird
cause CF never complained, it just did not provide me with session
scope...
I am once again smiling, dont ask me why but it feels
good.........
mdooly

Similar Messages

  • How to get session vars of another or any current user

    We all should know that the syntax session.varname will get or set a session variable for the one user currently making the request.
    But can we write a method to get the session structure for ANY given user, when provided with a valid identifier like sessionID?
    Don't everybody all yell at once now.

    Ah HA! I knew there was a way, it was just a matter of not knowing the magic phrase to search for (kinda like learning ActionScript).
    Plain web service calls work just fine, but when my Flex app makes a Remote Object call to a cfc, my ColdFusion API always triggers onSessionStart, and has no apparent knowledge of the session variables that are already there for this Flex user (like the ones authorizing access to the API).
    I figured the fix was to provide the sessionID in my initial LogIn method, keep that on the Flex side, then pass it back in the RO call - where sessionTracker could dig up the needed info?
    Or my RO setup is just missconfigured?

  • Problem getting sessions from sessions.xml

    I have been having difficulty getting a sessions.xml file deployed on our web application. I've found that if the file is not on the classpath, I do get an error indicating that the sessions.xml or Toplink properties file can not be found. But when I put the sessions.xml in the classpath and have checked to ensure that the projects referenced by the file are also in the classpath, I no longer get the error but for some reason sessions don't get populated by the SessionsManager. I've tried the code below both from within the webapp and also just from a main method in my IDE:
         SessionManager manager = SessionManager.getManager();      
         Hashtable sessions = manager.getSessions();
         System.out.println(sessions.size());
    And when I run it I get 0 as my answer. Is there anything more I need to do than set the sessions.xml as well as the projects (we're using compiled Java classes) in the classpath?
    Thanks in advance,
    Mark

    Ok, since the sessions are loaded lazily, I changed my code to the following below, but am now getting null when I specifically ask for 'ODSSession' in the code below.
    SessionManager manager = SessionManager.getManager();
    Session session = manager.getSession("ODSSession");
    System.out.println("session = " + session);
    Also, below is my sessions.xml with the database and login information changed for privacy purposes. The sessions.xml was setup using the workbench and I was able to map tables to the project using it. Am I missing something as to why I can't load the session?
    Thanks,
    Mark
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <toplink-sessions version="10g Developer Preview 3 (10.1.3.0 )" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="server-session">
    <name>ODSSession</name>
    <server-platform xsi:type="oc4j-1013-platform"/>
    <event-listener-classes/>
    <primary-project xsi:type="class">sample.TestProject</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle9Platform</platform-class>
    <user-name>user</user-name>
    <password>password</password>
    <external-connection-pooling>true</external-connection-pooling>
    <external-transaction-controller>true</external-transaction-controller>
    <sequencing>
    <default-sequence xsi:type="table-sequence">
    <name>Default</name>
    </default-sequence>
    </sequencing>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <connection-url>jdbc:oracle:thin:@111.111.111.111:1521:ods</connection-url>
    </login>
    <connection-pools>
    <read-connection-pool>
    <name>ReadConnectionPool</name>
    <max-connections>2</max-connections>
    <min-connections>2</min-connections>
    </read-connection-pool>
    <write-connection-pool>
    <name>default</name>
    <max-connections>10</max-connections>
    <min-connections>5</min-connections>
    </write-connection-pool>
    </connection-pools>
    </session>
    </toplink-sessions>

  • I have an iphone 4 and i just updated to ios5 and i can't get my music to stay on my iphone and i also keep getting and error message when trying to restore iphone. anyone else having this problem?

    i have an iphone 4 and i just updated to ios5 and i can't get my music to stay on my iphone and i also keep getting and error message when trying to restore iphone. anyone else having this problem?

    When you restore, which error # appears?

  • Getting session has timed out while trying to redeem a gift card. have had no problem in the past.  am running a g4 since 2002 with os 10.4 and itunes 9. have no internet problems and can connect to store ok. so far apple no help keeps blaming it on othrs

    am having trouble for the first time trying to redeem a gift card. Everything same on computer, OS, and internet connection. have been able to redeem other cards. this time am getting "SESSION HAS TIMED OUT" while trying to redeem card. have contacted apple and checked out all their suggestion iE:( must be your connection. typed in code wrong, too old version of itunes, etc) anything but why would a gift card code bee tied to a specific vetrsion of ITUNES. Rediculous!! there has to be others out there that have an older version if itune than i have. has anyone ever had the error "SESSION HAS TIMED OUT" and if so was it corrected?? any information other than apples {change password and give us lots of personal info they probably have) would be appreciated..

    Hello,
    As far as I can see, that Verizon Jet Pack wireless Modem uses WPA2 to connect.
    The Router might complicate things right now.
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    Is that Interface dragged to the top of Network>Show:>Network Port Configurations and checked ON?
    The Interface that connects to the Internet, needs to be drug to the top of System Preferences>Network>Show:>Network Port Configurations and checked ON.
    If using Wifi/Airport...
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.

  • Got systemd-logind: failed to get session: when optirun glxgrears

    I installed nvidia and bumblebee, primus.
    When I tried to test optirun, I ran
    optirun glxgrears -info
    Then I got this,
    [ 2376.692764] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) systemd-logind: failed to get session: PID 1540 does not belong to any known session
    [ 2376.692829] [ERROR]Aborting because fallback start is disabled.
    Here is my /var/log/Xorg.8.log ,
    [ 2376.692764] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) systemd-logind: failed to get session: PID 1540 does not belong to any known session
    [ 2376.692829] [ERROR]Aborting because fallback start is disabled.
    [hk@hkpc ~]$ cat /var/log/Xorg.8.log
    [ 2376.682]
    X.Org X Server 1.16.0
    Release Date: 2014-07-16
    [ 2376.682] X Protocol Version 11, Revision 0
    [ 2376.682] Build Operating System: Linux 3.15.5-2-ARCH x86_64
    [ 2376.682] Current Operating System: Linux hkpc 3.15.8-1-ARCH #1 SMP PREEMPT Fri Aug 1 08:51:42 CEST 2014 x86_64
    [ 2376.682] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=669c53af-9ee3-4bbf-b62f-14c76e81da89 rw quiet
    [ 2376.682] Build Date: 31 July 2014 11:53:19AM
    [ 2376.682]
    [ 2376.682] Current version of pixman: 0.32.6
    [ 2376.682] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 2376.682] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 2376.683] (==) Log file: "/var/log/Xorg.8.log", Time: Mon Aug 4 22:39:09 2014
    [ 2376.683] (++) Using config file: "/etc/bumblebee/xorg.conf.nouveau"
    [ 2376.683] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
    [ 2376.683] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    [ 2376.683] (==) ServerLayout "Layout0"
    [ 2376.683] (==) No screen section available. Using defaults.
    [ 2376.683] (**) |-->Screen "Default Screen Section" (0)
    [ 2376.683] (**) | |-->Monitor "<default monitor>"
    [ 2376.683] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
    [ 2376.683] (**) | |-->Device "DiscreteNvidia"
    [ 2376.683] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
    [ 2376.683] (**) Option "AutoAddDevices" "false"
    [ 2376.683] (**) Option "AutoAddGPU" "false"
    [ 2376.683] (**) Not automatically adding devices
    [ 2376.683] (==) Automatically enabling devices
    [ 2376.683] (**) Not automatically adding GPU devices
    [ 2376.683] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
    [ 2376.683] Entry deleted from font path.
    [ 2376.683] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
    [ 2376.683] Entry deleted from font path.
    [ 2376.683] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    [ 2376.683] Entry deleted from font path.
    [ 2376.683] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
    [ 2376.683] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    [ 2376.683] Entry deleted from font path.
    [ 2376.683] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
    [ 2376.683] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/
    [ 2376.683] (==) ModulePath set to "/usr/lib/xorg/modules"
    [ 2376.683] (==) |-->Input Device "<default pointer>"
    [ 2376.684] (==) |-->Input Device "<default keyboard>"
    [ 2376.684] (==) The core pointer device wasn't specified explicitly in the layout.
    Using the default mouse configuration.
    [ 2376.684] (==) The core keyboard device wasn't specified explicitly in the layout.
    Using the default keyboard configuration.
    [ 2376.684] (II) Loader magic: 0x818d80
    [ 2376.684] (II) Module ABI versions:
    [ 2376.684] X.Org ANSI C Emulation: 0.4
    [ 2376.684] X.Org Video Driver: 18.0
    [ 2376.684] X.Org XInput driver : 21.0
    [ 2376.684] X.Org Server Extension : 8.0
    [ 2376.685] (EE) systemd-logind: failed to get session: PID 2304 does not belong to any known session
    [ 2376.686] (II) xfree86: Adding drm device (/dev/dri/card1)
    [ 2376.686] (II) xfree86: Adding drm device (/dev/dri/card0)
    [ 2376.686] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
    [ 2376.688] (--) PCI:*(0:1:0:0) 10de:0fd4:1558:3700 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
    [ 2376.688] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    [ 2376.688] (II) LoadModule: "glx"
    [ 2376.688] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 2376.690] (II) Module glx: vendor="X.Org Foundation"
    [ 2376.690] compiled for 1.16.0, module version = 1.0.0
    [ 2376.690] ABI class: X.Org Server Extension, version 8.0
    [ 2376.690] (==) AIGLX enabled
    [ 2376.690] (II) LoadModule: "nouveau"
    [ 2376.690] (WW) Warning, couldn't open module nouveau
    [ 2376.690] (II) UnloadModule: "nouveau"
    [ 2376.690] (II) Unloading nouveau
    [ 2376.690] (EE) Failed to load module "nouveau" (module does not exist, 0)
    [ 2376.690] (II) LoadModule: "mouse"
    [ 2376.691] (WW) Warning, couldn't open module mouse
    [ 2376.691] (II) UnloadModule: "mouse"
    [ 2376.691] (II) Unloading mouse
    [ 2376.691] (EE) Failed to load module "mouse" (module does not exist, 0)
    [ 2376.691] (II) LoadModule: "kbd"
    [ 2376.691] (WW) Warning, couldn't open module kbd
    [ 2376.691] (II) UnloadModule: "kbd"
    [ 2376.691] (II) Unloading kbd
    [ 2376.691] (EE) Failed to load module "kbd" (module does not exist, 0)
    [ 2376.691] (EE) No drivers available.
    [ 2376.691] (EE)
    Fatal server error:
    [ 2376.691] (EE) no screens found(EE)
    [ 2376.691] (EE)
    Please consult the The X.Org Foundation support
    at http://wiki.x.org
    for help.
    [ 2376.691] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
    What should I do?

    barchiesi wrote:
    Oedner wrote:after updating to linux 3.16 i got this error too. using the command without the -info works however.
    Are you sure that it only doesn't work with the '-info'? I see no difference.
    i just tried it a couple of times and it looks like its completely random o.O
    you are right, using it (with or without -info) only works like every third attempt while the others throw the error mentioned by the op. i got that idea because it worked when i tried it. starting nvidia-settings with optirun is the same, error, working, error, working. can't say whats the problem here, i just switched to arch again recently.

  • Is it possible that get session by ID?

    Hello,
    I put session id into URL as a parameter.
    Now the problem is, how can i get session by session ID?

    The container handles session management. Tomcat allows you to write and implement your own session manager, and other containers may as well, but if you didn't specifically write your own manager, you have to rely on the container to retrieve your session for you.
    By standard, the parameter that defines the session is JSESSIONID, and you can try putting this parameter in your URL, but this may not be the current session. You can compare session.getSessionId() with request.getRequestedSessionID() to see if you're working with the same Session object.

  • Problem with sessions in Kate Editor

    Hey guys!
    I'm using Kate Editor to code and i'm having problems with sessions. If kate is open and I logout KDE, when I come back to KDE all my customizations in Kate's session (activated plugins, font size, etc) are lost.
    If I manually close Kate before logout from KDE, all the customizations are kept when a manually start Kate. I tried a lot of workarounds, but none worked.
    Is this a bug? Someone else with this issue?
    Thanks in advance!

    The Warning errors are simply because you don't have the tablespaces, users, and roles defined in your application system under the DB Admin tab. Unless it is important to you to capture the physical implementation of your tables exactly as well as the table definitions, you can safely ignore these. If the physical implementation IS important to you, then you need to create these tablespaces, roles and users under the database that you created under the DB Admin tab before you start the capture.
    The Error is because in the set of objects you are capturing there is a foreign key that references the table named "PLEASANT". This table must be among the objects that you are capturing, or must already be in a Table Definition in your application system in the repository.

  • Problem with Sessions, Servlets, Netscape and Solaris

    We are experiencing a problem that is confounding and frustrating us (I have
              a felling that it is something exremely minor that we are overlooking).
              Here goes:
              Context:
              The problem only occurs when using a netscape browser against weblogic
              4.51running on our Solaris 7 box (Everything works fine through IE, and
              through both browsers against our development machines which are on NT)
              Problem:
              We have a bunch of JSP pages and servlets that are used togehter throughout
              our site. They both manage session information for the user. What is
              happening is that there is no problem maintaining session information among
              all the JSP pages, but when we hit a servlet that we use to stream graphs
              back to the browser, it gets the session but it has no contents all of a
              sudden. What seems to be even more strange is that the session is not
              tagged as new (by checking isNew()), it is just empty of the contents that
              were placed it by the JSP pages. Again, this is only occurring from
              Netscape browsers against our Solaris server.
              If anyone can provide any help it would be greatly appreciated. I can
              provide more details if need be.
              Jeremy
              

    There is a property in the weblogic.properties file that lets you set
              the cookie name. If this isn't set, the port will be appended as part of
              the name. I've had a similar problem switching between http and https
              and losing sessions.
              Carles
              Jeremy wrote:
              >
              > in the link tothe servlet the URL had a :80 in it. This was because the url
              > was generated by a JSP page so that when it was moved from server to server
              > and port to port the code wouldn't have to be changed. Unfortuneately,
              > Netscape sucks and takes this to mean that x.x.x.x and x.x.x.x:80 are
              > different and won't acknowledge the cookie from the JSP pages (x.x.x.x) to
              > the servlet (x.x.x.x:80). Thanks fpr your help.
              >
              > Jeremy <[email protected]> wrote in message
              > news:[email protected]...
              > > my mistake, it appears to always happen on port 80 regardless of the
              > server
              > > it is on.
              > >
              > > Jeff Martin <[email protected]> wrote in message
              > > news:[email protected]...
              > > > It really sounds like your servlet is making a new session, even though
              > > > isNew() doesn't say so. What you might try to do is use session.getId()
              > > > to print out the session ID from your jsp pages as well as your servlets
              > > > to determine if it really is a new session.
              > > >
              > > > Do your servlets and JSPs both use the same scheme (http or https) or
              > > > cookie.setSecure()? Do your cookies use domains or paths in either
              > > > servlets or jsps (cookies can be restricted to certain subdirectories
              > > > which might be different between jsps and servlets)? Are you testing
              > > > through a proxy or firewall, or does either browser have different proxy
              > > > settings than the others?
              > > >
              > > > Jeff
              > > >
              > > > Jeremy wrote:
              > > > >
              > > > > We are experiencing a problem that is confounding and frustrating us
              > (I
              > > have
              > > > > a felling that it is something exremely minor that we are
              > overlooking).
              > > > > Here goes:
              > > > >
              > > > > Context:
              > > > > The problem only occurs when using a netscape browser against weblogic
              > > > > 4.51running on our Solaris 7 box (Everything works fine through IE,
              > and
              > > > > through both browsers against our development machines which are on
              > NT)
              > > > >
              > > > > Problem:
              > > > > We have a bunch of JSP pages and servlets that are used togehter
              > > throughout
              > > > > our site. They both manage session information for the user. What is
              > > > > happening is that there is no problem maintaining session information
              > > among
              > > > > all the JSP pages, but when we hit a servlet that we use to stream
              > > graphs
              > > > > back to the browser, it gets the session but it has no contents all of
              > a
              > > > > sudden. What seems to be even more strange is that the session is not
              > > > > tagged as new (by checking isNew()), it is just empty of the contents
              > > that
              > > > > were placed it by the JSP pages. Again, this is only occurring from
              > > > > Netscape browsers against our Solaris server.
              > > > >
              > > > > If anyone can provide any help it would be greatly appreciated. I can
              > > > > provide more details if need be.
              > > > >
              > > > > Jeremy
              > >
              > >
              

  • How can i get my items to stay in place and not cross over each other when readjusting the browser s

    How can i get my items to stay in place and not cross over each other when readjusting the browser size.
    Basically on my site when i go from a small screen to a big screen everything doesn't adjust to the screen size. I don't know what im missing
    Here's the link to the page all the pages & they all do it
    http://theatricalworkslive.com/
    Thanks in advance

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem.  Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • ERROR: Error in getting session data: Invalid or Expired Session

    Hi,
    We are using ssrs 2008 r2 and have a report which has links that allow the user to drill down.
    When the link is clicked the same report is run but shows more detail. This works fine but we are now getting the error below for a user. 
    I have increased the time out for the report to 600 seconds.
    Error in getting session data: Invalid or Expired Session: fnxgxhjuveugvd552qfyv3fw
    session!ReportServer_0-6!4b0!03/18/2015-10:51:29:: i INFO: LoadSnapshot: Item with session: fnxgxhjuveugvd552qfyv3fw, reportPath: , userName: doman/user not found in the database
    Any ideas how this can be resolved?

    Hi Nasa1999,
    Based on your error message, If the all the users will sometimes got the same issue, it can be caused by the timeout issue. It happens a lot when rendering big report, and it exceeds the default Session Timeout. You can execute script
    to increase the Session Timeout time. Please refer to following blog:
    Session Timeout during execution. Also increase the value of <Query Timeout> in rsreportserver.config file. This file locate at XX:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer
    Please also check to set the <legacyImpersonationPolicy> back to true(https://support.microsoft.com/en-us/kb/972328).
    Locate the Aspnet.config file in the following folder:
     %windir%\Microsoft.NET\Framework64\v2.0.50727
    If Microsoft Visual Studio is installed on the computer that is running SQL Server 2005, double-click
    Aspnet.config. If Visual Studio is not installed on the computer, follow these steps:
            a. Right-click Aspnet.config, point to
    Open with, and then click Choose program.
            b. In the Programs list, click
    Notepad, and then click OK.
    Locate the following tag in the <runtime> section of the code.
            <legacyImpersonationPolicy enabled="false"/>
    Change the tag to:
            <legacyImpersonationPolicy enabled="true"/>
    Save the Aspnet.config file.
    Reset IIS.
    Try your report again.
    Similar Thread for your reference:
    Using SharePoint Report Viewer
    Web Part: Error in getting session data: Invalid or Expired Session: xxxxxxxxxxx
    If only the one user or several users will got the issue, the issue can be caused by the permission setting, please reference to below blog:
    http://answers.flyppdevportal.com/categories/sqlserver/sqlreportingservices.aspx?ID=3506231b-9f4d-4f5a-884d-157137c56336
    http://blog.goobol.com/the-permissions-granted-to-user-domainusername-are-insufficient-for-performing-this-operation/
    If your problem still exists, please try to provide more details information as below:
    Did you reporting service installed in native mode or sharepoint mode, If in native mode, please try to provide more error message from the log file:
    C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\LogFiles
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Problem with Session variable initialization block

    Hi,
    I'm getting strange results when using session variables in my repository files.
    I have created session variables as specified in the document which is available at
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.html
    The main problem getting with the system session variable (USER) in the select statement.
    My select statement is as follows,
    select ':USER',case when upper(':USER') = 'KUMAR' then 'APR-05' end from Dual
    The problem is while logging into the BI Answers it is allowing all the invalid users to login who does not exist.
    when i remove the quotes and simply use :USER in the select statement it is not allowing the invalid users to login but giving error while displaying the results.
    when i remove the user variable from select statement its giving correct results.
    Can i know what is causing the problem.
    Thanks,
    Kumar.

    Hi DK,
    Check out my post Rowlevel Security?? and see if it helps you.
    Cheers!
    -Joe

  • Problem removing session attributes

    I have a problem removing session attributes
    I try w/ mysession.removeAttribute("key");
    but it still lives in memory. I've tried setAttribute("key", null) as the API states that will do the same thing, but it doesn't work.
    I can get mysession.invalidate() to work, but I want to keep some of the attributes there, while removing another.
    I get no exceptions and no errors.
    Help.
    Running Tomcat 4
    jre 1.3.1

    Actually,
    response.addHeader("Expires", "-1");should be enough.
    The browser should then contact the Web server for updates to that page via a conditional If-Modified-Since request. You don't want a cache disabling 'overkill', since you'd still want the page to remain in the disk cache and used in appropriate situations without contacting the remote Web server, such as when the BACK and FORWARD buttons are pressed...
    Anyway, try this first, and if it doesn't solve your problem, add the other cache-disabling headers, as outlined in the previous post.
    If you're using JSP, verify also that your page has
    <%@ page session="true"%>

  • Function to get session variable is not working

    I created a report based on the following sql query:
    SELECT EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO FROM SCOTT.EMP
    WHERE DEPTNO = empcust.current_deptno
    empcust.current_deptno is a function which returns the value of the session variable. However, nothing gets returned. The value of the session variable is not found.
    I know that the session variable is being set b/c i have a procedure that sets it and prints out the assigned.
    This is my code for the current_deptno function. If anyone can help, i'd greatly appreciate it!
    procedure current_deptno
    return VARCHAR2
    as
    v_Session portal.wwsto_api_session;
    v_Return VARCHAR2(20); --DEPT.DEPTNO%TYPE;
    begin
    v_Session := portal.wwsto_api_session.load_session('PORTAL','SESS_EMP');
    v_Return := v_Session.get_attribute_as_varchar2('DEPTNO');
    htp.p('Return session var'||v_Return);
    RETURN(v_Return);
    end;

    Hi Imtiaz,
    Could you verify that the variable has indeed a value? You could check via the Session Manager in the Admin Tool. You could also check the Query Log to verify whether the Initialization Block is working like expected.
    Thanks.
    Daan Bakboord
    http://obibb.wordpress.com

  • When apex application get session?

    Hi!
    Can anyone tell me when application get session? I use plugin for dropdown menu and now I must set link for page. I tried to set link like this f?p=&APP_ID.:2:&SESSION. so browser could use it like localhost:8080/apex/*f?p=1000:2:386966391988601:::::*, but that doesn't work for me. I also try to set like f?p=1000.:2:&SESSION. (error i get is Bad Request The HTTP client sent a request that this server could not understand.) or f?p=1000:2: (here I must log in evry time i want use that link) and nothing work good for me.
    Regards,
    Dragan
    Edited by: drama9346 on 26.4.2012 4:11

    The <script> ... </script> has to be in HTML Header and not in Page HTML Body Attribute.
    Is it in the right place?
    To test it add an alert after the assignment.
    <script type="text/javascript">
      var pAPP_ID = &APP_ID.;
      var pSESSION = &SESSION.;
    alert ('App Id='+pAPP_ID);
    </script>On page load you should get the alert with the App Id.
    On second thoughts , the documentation says
    To use this menu, you'll need a source of data that provides menu options in the format: ID, Parent ID, name, link and level. So why not populate the APP_ID and Session in the link using
    Select ....
    'f?p=' || v('APP_ID') ||':'|| page_no ||':'||v('SESSION') link,
    ....Regards,
    Edited by: Prabodh on Apr 26, 2012 5:52 PM

Maybe you are looking for

  • Where is full installer for webcenter 11.1.1.5.0?  Link on website broken

    I tried to download the full installer of webcenter 11.1.1.5.0 from http://www.oracle.com/technetwork/middleware/webcenter/downloads/index.html It says directly below the link that this is a full installer but when you download it, the readme says it

  • Problem in storing JAPANESE character in DB 10g

    All, I have problem in storing data in Db. I used page directive in JSP like <%@ page contentType="text/html; charset=iso-2022-jp"%> in jsp screen in will get JAPANESE character but in DB I found some JUNK but reteriving the same in jsp it shows corr

  • Nesting Objects

    I am looking for advice on how to nest objected created from cfcs... The place I have seen this sdone is in the fusebox framwork in the following: #myFusebox.getCurrentCircuit().getAlias()# What I would like to do is create an object called called us

  • How to truncate currency part from total field in SAP B1?

    Hi All, Is there any way to truncate the currency part (for exp USD 23.45 should give 23.45) from total columns while fetching its value thru DI API (without left-trailing the varchar part)? many thanks in advance.. regards, Binita

  • Cannot open excel files in iOS4

    As soon as I upgraded to iOS4, I have been unable to open excel files. Sometimes I get a can't open error, sometimes it crashes and goes back to the homescreen and with some excel files it works. A Genius at the store was able to open one after he re