Passing session var

I'm trying to assign session. var to domain names. E.G
(mydomainname.com) and (somthingdiff.com)
so if user went to mydomainname.com then went to
somthingdiff.com this would contain the same session.var.

I don't think you can do that. You are ending a session on
mydominname.com and starting a new one on somthingdiff.com. Pass
your variable in the URL.

Similar Messages

  • How to pass session variable value with GO URL to override session value

    Hi Gurus,
    We have below requirement.Please help us at the earliest.
    How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version  Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
    Please provide step by step solution.No vague answers.
    I followed below steps mentioned.
    RPD:
    ****-> Created a session variable called STATUS
    -> Create Session Init block called Init_Status with SQL
        select 'ACTIVE' from dual;
    -> Assigned the session variable STATUS to Init block Init_Status
    authenticationschemas.xml:
    Added
    <RequestVariable source="url" type="informational"
    nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
    Report
    Edit column "Contract Status" and added session variable as
    VALUEOF(NQ_SESSION.STATUS)
    URL:
    http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
    Issue:
    When  I run the URL above with parameter EXPIRED, the report still shows for  ACTIVE only. The URL is not making any difference with report.
    Report is picking the default value from RPD session variable init query.
    could you please let me know if I am missing something.

    Hi,
    Check those links might help you.
    Integrating Oracle OBIEE Content using GO URL
    How to set session variables using url variables | OBIEE Blog
    OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
    Thanks,
    Satya

  • Passing Session variable of DATE data type to opaque view filter

    Hi Everyone,
    Can you guys please help me in passing session variable of DATE data type in RPD's physical layer 'opaque view' filter for Oracle database
    I tried following syntax, syntax wise I didn't got getting any error, but at the same time this opaque view is not fetching any records as well. my session variable is "END_DATE" and its value is 1998/12/31:00:00:00(as shown in RPD session windows, datatype is DATETIME)
    SELECT AMOUNT_SOLD, CHANNEL_ID, CUST_ID, PROD_ID, PROMO_ID, QUANTITY_SOLD, TIME_ID FROM SH.SALES
    WHERE TIME_ID =TO_DATE( 'VALUEOF(NQ_SESSION.END_DATE)','MM/DD/YYYY')
    SELECT AMOUNT_SOLD, CHANNEL_ID, CUST_ID, PROD_ID, PROMO_ID, QUANTITY_SOLD, TIME_ID FROM SH.SALES
    WHERE TIME_ID = TO_DATE( 'VALUEOF(NQ_SESSION."END_DATE")','MM/DD/YYYY')
    SELECT AMOUNT_SOLD, CHANNEL_ID, CUST_ID, PROD_ID, PROMO_ID, QUANTITY_SOLD, TIME_ID FROM SH.SALES
    WHERE TRUNC(TIME_ID) = TO_DATE( 'VALUEOF(NQ_SESSION."END_DATE")','MM/DD/YYYY')
    In past, I was able to pass a session variable into a opaque view filter using DATEOF function, but that was in DB2.
    I appreciate your time and help

    Finally, I got right format. here it is
    to_date(substr('valueof(NQ_SESSION.END_DATE)',1,10), 'yyyy-mm-dd')
    and here is the source from where I got this information
    Using OBIEE Session Variables in Select Tables in the Physical Layer

  • Passing session information to multiple JVM's

    Is it possible to pass session information to another JVM running on another server?
    Example:
    Server A calls a servlet on Server B. Will the session object (and values stored in it) created on Server A be accessible to Server B.

    DrClap wrote:
    No.This is not exactly true. If you're talking about a clustered app server implementation (for example, Weblogic supports clustering), where 'machine A' and 'machine B' are both part of the same cluster, then, generally speaking, yes, you're HttpSessions are distributed across those machines.
    God bless,
    -Toby Reyelts

  • Force passing session id in url

    Hello. I need to pass session id (jsessionid) in only url, not in cookies even if cookies are on (accepted). Is it possible?
    I use jboss and struts. Is there any option in xml files?

    ah,
    Scott explained it here
    Why is SESSION used in the URL?

  • 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.

  • 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 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.

  • Passing Session to Other Java Application

    Dear All,
    We need to pass session of SAP BO to other java application.in short we need to make single sign on between these two without using third party authentication type.
    by research , i could find out extension point API which supports to environment, through which it might be possible.
    I need your help on this.
    Environment:
    SAP BO 4.1 Sp2
    Any Help on this would be appreciated.
    Best Regards,
    Atulm

    Hi all, i have one problem. I need to pass some
    session to a java bean for processing.. Can i know are
    there any possible ways of passing? thanks.if i understand you correctly, and you mean passing a session object
    to a bean from a jsp page, do this:
    have in your bean:
    import javax.servlet.http.HttpSession;
    private HttpSession session = null;
    public void setSession (HttpSession sessionFromJsp) {
    session = sessionFromJsp;
    in your jsp:
    beanname.setSession(session);
    the variable named session is available is jsp pages,
    it is an instance of the javax.servlet.http.HttpSession class,
    and provides access to the client session information.
    dave

  • 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#<---">

  • Passing Session info between servlets

    We are running WebLogic 5.1, sp 4 and Apache 1.3 on Solaris 2.6 and we are
              successfully proxying requests to the server. But we are unable to pass
              session information between servlets. We are NOT using URL encoding. We are
              instead using cookies. We believe our configuration is correct because the
              BEA example session servlet works. Does anyone have any recommendations or
              suggestions?
              Thank you,
              Jorge
              Jorge A. Martin
              Systems Analyst
              The Kinetic Group
              1950 Stemmons Freeway, Suite 3040
              Dallas, Texas 75207
              

    This is a basic misunderstanding of how Java Works:
    String name +r = request.getParameter(name +r);1) You can't use a + on the left part of an assignment operation - it must be a plain variable reference. This isn't like JavaScript where you have an eval(...) capability.
    2) Your Strings are being defined inside the For Loop, which means they will leave scope once the loop ends and you won't be able to refer to them anymore.
    3) Is there already a String value named 'name' which you are using in getParameters(name+r)? You should probably use getParameter("name"+r) instead.
    What you want to do is either put the values in an array so they are easy to access:
    String name[] = new String[value1];Then loop through the parameters to assign values:
    for(int r = 0; r< value1; r++) { //Start at 0 to value1-1 because arrays are 0 based.
      String nameParam = "name"+ (r+1);
      name[r] = request.getParameter(nameParam);Now I can access the names in order:
    name1 via name[0]
    name2 via name[1]
    name3 via name[2]
    etc...Before going any further I would stop working on Servlets and go back to some good Basic Java Tutorials and books until you get a better grasp of how the language works.

  • Passing session info

    hi all,
    i have lots of jsp pages and these pages use a lot of class files created by me.
    i want to pass session info to class files without having to pass the info through each object that is created in the jsp pages--
    what i want to know is that is there any way through which a class file a mine could fetch the session value.(i dont mind passing session info to one class-- but passing to too many classes would be a headache !!)
    thanks,
    gaurav

    Not sure if this will work but worth a try.
    Create a class called SessionHolder that looks something like:
    public class SessionHolder {
    private static HashMap sessionMap;
    public synchronized static void putSession(Thread thread, HttpSession session) {
         if (sessionMap == null) { sessionMap = new HashMap(); }
         sessionMap.put(thread, session); }
    public synchronized static HttpSession getSession(Thread thread) {
         return (HttpSesion)sessionMap.get(thread); }
    public synchronized static void removeSession(Thread thread) {
          sessionMap.remove(thread); }
    }<P>
    In the servlet you store the session in the SessionHolder via:
    SessionHolder.putSession(Thread.currentThread, request.getSession(true));
    Always remember to remove the session from the SessionHolder when exiting the servlet or the sessions will linger and take up memory:
    SessionHolder.removeSession(Thread.currentThread);
    In your classes you can retrieve the session using:
    HttpSession session = SessionHolder.getSession(Thread.currentThread);
    This should work on the basis that the servlet container will create a new thread for each request to the servlet. As long as your classes do not create new threads they should be able to access the static hashmap to retrieve the session stored by the thread key.
    Of course this is just a theory and I have not tested it out to verify if it actually works.

  • Session vars, CFCs and CFHTTP

    Hi guys
    I'm using session vars to maintain whether or not a user is
    logged in on our site. The only problem is is that the session vars
    seem to be lost after I call a CFC that then does a CFHTTP post.
    Does anyone know how I maintain the session vars?
    I'm using CF MX 7
    All the best
    Wez

    wezcornell2008 wrote:
    > Hi guys
    >
    > I'm using session vars to maintain whether or not a user
    is logged in on our
    > site. The only problem is is that the session vars seem
    to be lost after I call
    > a CFC that then does a CFHTTP post.
    >
    > Does anyone know how I maintain the session vars?
    >
    > All the best
    >
    > Wez
    >
    Why do you say they are lost? Are you sure you did not just
    misplace them?
    In other words nothing about CFC's or CFHTTP would
    intrinsically destroy
    session variables in memory. But they could easily not have
    access to
    the scope as you desire if you do not understand how
    templates and cfml
    code are associated with a given session scope when it is
    running in memory.

  • Null value in Session vars and request.getParameter

    We're migrating our application from iPlanet.
              Under iPlanet, when we looped through a resultset and set the values to
              session variables - it worked fine, even when a resultset value was null,
              but in WebLogic, I get the following error:
              java.lang.IllegalArgumentException: key/value is null
              Is there anyway to "turn this off" so it behaves like iPlanet?
              My second question is that we have many JSP's that check to see if a
              parameter is null in javascript:
              Here's the code:
              function onLoad() {
              document.form.elements[0].focus();
              // Check to see if the user is coming from a shortcut
              var imageName = "<%=request.getParameter("imageName")%>";
              if (imageName == "null") {
              selectTop("<%=select_image%>");
              } else {
              selectTop(imageName);
              <% if (tableIndex == 2) { %>
              loadShortcutIcon(13,100);
              <% } %>
              in iPlanet, when the parameter "imageName" is not in the URL, the javascript
              variable gets set to "null" - but in WebLogic, it is set to a blank string -
              "". Is there anyway to make this return null like iPlanet?
              Thanks,
              Matt
              

    Hi,
    the URL parameter is added just for the request to the page. When you press the command button then you issue a new request that does not have a URL parameter added. To work around this, you can use a PhaseListener that stores the URL request parameter in the session for later use
    Frank

  • Passing Session Values to the Tabular Form Element of a Report Column

    Hello,
    I'm running application express version 2.0 with a 10.2.0.2.0 database on a 32 bit windows box. I'm trying to figure out sneaky a way to pass the &APP_PAGE_ID., #APP_PAGE_ID# or V('APP_PAGE_ID'); as an element attribute of a Report Tabular Form Element set to display as a Select List (named LOV).
    It seems that whatever option I choose, the Element Attributes field will only render the literal value of what I have entered. This is part of the solution but I would like to find a way to pass the current page id.
    What I'm trying to do is utilize the ONCHANGE attribute to redirect to a report page in my application when the value from a Select List (named LOV) is selected.
    I could work around this by creating my own table output with PL/SQL and HTP.P commands but would really be interested in finding out if I can use the reporting structures which are already available through Application Express.
    Any ideas?
    Thanks.
    Justin.

    Thanks for the response Earl. To clarify this is what I've done and what I hope to achieve:
    I currently have a LOV for my application that identifies a number of database report types: DB Options, DB Parameters, DB Version, and so on.
    I have an application express report being generated for the databases I'm monitoring and it displays as follows:
    - HOST -- DBTYPE -------- DBNAME - DBREPORTS
    =====================================
    - SVR 1 - Oracle 9.2.0.1 - DEV -------- [LOV HERE]
    - SVR 2 - Oracle 9.2.0.7 - TST --------- [LOV HERE]
    I am displaying the LOV on my report the the options under the reports attribute tab in my application builder. I insert my LOV select list by editing the DBREPORTS column and set the "Display As:" option under Tabular Form Element to "Select List (named LOV)"; I have also added my LOV to the "Named LOV" option under List of Values.
    So far this achieves everything I would expect and works quite well (a select list with my report types appears in my monitor report for each DB that is returned).
    What I'm interested in doing now is opening a DBREPORT for a given database by simply choosing the report type from my LOV. I can set the "Element Attributes" option under Tabular Form Element to execute a javascript call for any valid event (in my case I'm using ONCHANGE).
    My only issue is that I cannot find a way to pass any session values from my page to my Element Attribute. If, in the Element Attributes field I enter:
    onchange="alert(this.value);" //my dialogue box will display the value of my current selection when I choose a report type.
    What I'd love to be able to do is something like:
    onchange="alert('&APP_PAGE_ID.');" //so my current page id is written to the element.
    Unfortunately, only my literal text seems to be rendered. Rather than having my dialogue come back with my page number, say 75, I receive the literal value &APP_PAGE_ID.
    Notwithstanding any quote issues, I've tried to dump a test html attribute to my source html by entering any of the following in the Element Attributes field:
    test=&APP_PAGE_ID.
    test=#APP_PAGE_ID#
    and as a shot in the dark knowing that I'm not using PL/SQL:
    test=V('APP_PAGE_ID');
    In every case when I view source I see the literal value of what was entered in the Element Attributes field (ie "test=&APP_PAGE_ID." instead of "test=75").
    What makes things a little more frustrating is that I can drop &APP_PAGE_ID. into the Column Heading field (ex My Heading &APP_PAGE_ID.), it renders as I would expect; "My Heading 75". If we could find a solution to this, I could see a number of slick uses for this type of functionality.
    Hope this helps,
    Thanks.
    Justin.

Maybe you are looking for

  • My laptop has a webcam but no built in webcam app.

    I have to use a crappy software to take pictures. How do I fix this? I need a webcam app that has a timer and I was hoping that there'd a be built in webcam app on my laptop that would do the trick. But there's no app in the first place. Help. This q

  • Project Online - Read Only

    Hello, Is there a way to create permissions for Project Online users so they only have read only rights? If so, would it be possible to change this permissions to write access at a future date? Would a different subscription be more suited for "read

  • Renaming many files

    How would I rename many files (over 100 total) in a directory using a UNIX command or script. Example of my files: file1.word.1.word file2,word,2 file3 word.3 I want them to be named: File1_word_1_word File2_word_2 File3_word_3 My goal is to get rid

  • Photoshop won't open because it says the scratch disk is full

    How do I fix this?  The program won't open when I start it up.  I starts opening and then immediately says the scratch disc is full and then closes the program.  How do I fix this?

  • GRC AACG/TCG and CCG control migration best practice.

    Is there any best practice documents which illustrates the step by step migration of AACG/TCG and CCG controls from the development instance to the production? Also, how should one take the back up for the same ? Thanks, Arka