Unique session reference ?

So I'm using session management and I need a unique session identifier to use as a key field in a table
Is session.sessionID ok for this ?
table 'webCart'
sessionID, itemID, qty
I'm happy once the session times out, the cart row(s) won't be available

Thanks Dan
So the session ID isn't truly unique ?
I'll use the UUID function then
I'll save the UUID as a session variable
I'll use the variable as my unique key in the webCart table, so I can insert / retrieve rows for that particular session

Similar Messages

  • Unique Session ID in XSLT

    Hello SND-ers,
    Iu2019m having a little difficulty figuring out how to obtain the GUID or another unique session ID to place in field u2018SeqNumu2019.  This XSLT creates a custom soap envelope around a payload and Iu2019m using this in an operation mapping in PI 7.1.  I need to place a unique session ID in that u2018SeqNumu2019 field, but havenu2019t figured out how to do this yet.  I didnu2019t know if there was a specific PI namespace that I could reference similar to the date/time example in the code below.  Any help or guidance would be very much appreciated.  Iu2019ve only included the top portion of the code to be clear in my request.
    <xsl:stylesheet version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:wsa="http://www.w3.org/2005/08/addressing"
    xmlns:date="http://exslt.org/dates-and-times">
         <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
         <xsl:variable name="Date" select="date:date()"/>
         <xsl:variable name="Time" select="date:time()"/>
    <!unique id for the session - this can be the existing session id or guid>
         <xsl:param name="SeqNum" select=u201D<requestedvalue>u201D/>
    I tried finding a reference library of some sort that may contain this information, but so far have been unsuccessful.
    Thanks,
    Jason
    ps - as another side request, is it possible to pull the hostname or MAC address of the server to place that in the XSL as a dynamic value?
    Edited by: Jason Ray on Aug 14, 2009 5:53 PM

    >
    Prateek Raj Srivastava wrote:
    > Have you also added the following statements?
    >
    xmlns:map="java:java.util.Map"
    > <xsl:param name="inputparam"/>
    > and
    > <xsl:variable name="dynamic-conf" select="map:get($inputparam, 'DynamicConfiguration')" />
    >
    > Regards,
    > Prateek
    i have not added that code because i do not wish to pull in the payload of the message quite yet.  i'm creating a wrapper for it in the XSLT instead.  I'm interested in the GUID or the message ID and placing that value in a field in the XSLT.  I hope this makes sense.  Below at the bottom i've included more of the message to show what i'm trying to do.
    >
    Russell Darr wrote:
    > These runtime constants can be accessed using the sample xslt below:
    > http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    >
    > <?xml version = "1.0" encoding = "utf-8"?>
    > <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    >
    >   <xsl:param name="MessageId"/>
    >
    >   <xsl:template match="/">
    >      <msgguid>
    >        <xsl:value-of select="$MessageId"/>
    >      </msgguid>
    >   </xsl:template>
    >
    > </xsl:stylesheet>
    >
    > Regarding getting the MAC, I would create a small java class and call it as a function.  Might as well do the same to get the host name.  You can try to get it from a system property if you find one which will work.  For example:
    >
    >             <user>
    >                <xsl:value-of select="system-property('user.name')"/>
    >             </user>
    >
    >
    > Thanks,
    > -Russ
    This is more along the lines of what i'm trying to do.  I saw the runtime constants before and i do believe that the MessageId is what i need.  The issue is that when i add in the syntax from the example it fails stating that the stylesheet cannot be compiled.  Below is the code after I removed the sensitive information and cut a lot of the unnecessary code to simplify:
    I feel I need to add a namespace for the MessageId declaration, similar to how Iu2019ve declared the u2018dateu2019 namespace and referenced functions for the date and time.  Is this true, or is that not needed?
    Iu2019ll also see if I can figure out how to incorporate a small java class for the retrieval of the hostname and MAC.  For now Iu2019ll be sending a static value since the required field just wants a unique ID for the source system.
    Edited by: Jason Ray on Aug 19, 2009 5:46 PM

  • Unique session key  weblogic portal 9.2

    Hi,
    Is there a way I can generate unique session key to ensure correct session is tracking between every desktop with different user.
    Is this right way to handle session in weblogic portal 9.2?

    Hi
    what exactly do you want to do? A session does have an id which is guaranteed unique while the server is running (you dont need to do anything special for this). HttpSession.getId.
    Note However normally this value gets stored as a cookie on the browser (with the default name of JSESSIONID) and you must ensure that different webapps on the same domain dont overwrite this value
    regards
    deepak

  • NiScope Get Session Reference.vi does not compile.

    The "Register session" function requires a refnum and the way it is setup in this vi (niScope Get Session Reference.vi ) provided by NI does not provide a valid input for this function. Do you have any idea why? (class file? e.g.)
    I use labview 8.0 and the niScope software was originally installed in Labview 7.1 directory.

    Good afternoon Jimbojombo,
    Thanks for contacting National Instruments with your issue, we'll try our best to get it resolved as quickly and efficiently as possible.
    I just tried the niScope Get Session Reference.vi on my system without issue.  In order to get the niSCOPE VIs to work, you'll have to install the drivers directly from the Device Driver CD that shipped with your LabVIEW 8.0 (should be November 2005 edition).  As of right now none of our Modular Instrument drivers with support for LabVIEW 8.0 are available on the web. 
    If installed correctly, NI-Scope 2.9.2 should show up in your Add/Remove programs and you should see the following folder created on your computer:
    C:\Program Files\National Instruments\LabVIEW 8.0\instr.lib\niScope
    If you are currently using the downloaded evaluating version, please let me know and I'll find a way to get you the Device Driver CD.
    Sincerely,
    Minh Tran
    Applications Engineering
    National Instruments

  • Is it possible to get a unique session per browser window?

    I'm playing with the idea that each browser window may have it's own unique session.
    So, if I have two or more IE browsers open and I point each one at my web site, I want each window
    to maintain their own session id. Same if I have two or more Firefox browsers open, etc ...
    I see a sesion id is stored in the JSESSIONID cookie. It seems browsers of the same make share this cookie.
    So, you cannot keep sessions separate. Is there a way to get around this?
    Why do these sessions need to be shared across browser windows of the same make?

    Oh! Unfortunately, cookiepie is not what I'm seeking.
    How about managing the session without the JSESSIONID cookie?
    Can't the session id be put in the url? Is that a security risk? Even for https?

  • NiHSDIO error in labview 8.2. error in niHSDIO Get Session Reference.vi

    I get an error in the niHSDIO Get Session Reference.vi. 
    the error is on the wire from refnum to the refnum input of the register session function.  It says "This wire connects to a polymorphic terminal that cannot accept this datatype."
    I've installed all the required drivers of the latest version:
    visa 3.4
    ivi compliance package 2.5
    NI-DAQmx83
    NIHSDIO 1.4.2
    measurement and automation 4.1
    I still get this error.
    thanks
    kevin

    Kevin,
    please verify that the error occurs within the blockdiagram i attached.
    If it does, verifiy that the RefNum is set to "Session Reference". You
    can do that by rightclicking on the constant, select "Select Session
    Reference Class" >> "Session Reference".
    Another point is that the instrument handle you are passing to this VI
    has to be valid. If not, it should create error "-1073807346". But as
    you know: better check twice
    Norbert B.
    NI Germany
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.
    Attachments:
    sessionrefHSDIO.gif ‏6 KB

  • Why is serial# needed for unique session info

    hello everybody,
    as you know, a session is unique with 2 fields, SID and SERIAL# which exist on v$session view.
    my question is why is serial# needed and for which case serial# is changing.
    now, you can say that, "only oracle developers know this, that is the design" but what i mean is, for ex: if i wanted to find a session which is blocked by another session, I use this:
    select * from v$session where blocking_session is not null;in blocking_Session field, oracle gives me the session id (SID) which is blocking a session. so i can use this SID and i can kill it for instance but SID is not unique for a session I can find more than one session with same SID which one is the blocking one ?
    in real life i didnt see an example of that, there is no same sid in system like my blocking session example. so I believe that serial# is assigning for another purpose, I mean, i thougth that it could be for autonomous transaction, maybe they user same sid but differen serial# but when i tested it, i saw that i was wrong.
    so, why serial# is exists. if this is a design issue, how can i find a blocking session by just using SID info ?
    thanks a lot.

    Not surprisingly, an explanation may already be found in the documentation (and copied in Rene's reply above):
    See http://docs.oracle.com/cd/E11882_01/server.112/e25513/dynviews_3016.htm (column description).
    Or search:
    http://www.oracle.com/pls/db112/search?word=sid+serial%23&partno=
    Besides for terminating sessions, serial# may be relevant when e.g. tracing sessions (SQL Trace).
    Not sure what type of example you were looking for, but I came up with this in about five seconds:
    C:\Users>sqlplus blocker_user
    Enter password:
    Connected to:
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    SQL> select sid,serial# from v$session where sid=(select sid from v$mystat where rownum=1);
           SID    SERIAL#
           136         27
    SQL> conn other_user
    Enter password:
    Connected.
    SQL> select sid,serial# from v$session where sid=(select sid from v$mystat where rownum=1);
           SID    SERIAL#
           136         29Edited by: orafad on Feb 1, 2012 12:18 AM

  • Unique connection references

    When I print a connection (i.e. call Connection.toString()) I get back the same value (e.g. ...OracleConnection@42ea3f) across different runs.
    That is, I run my application.. which gets connections to the db and prints them to a file (i.e. calls toString() on the connection).. in runnin this program several times in Windows NT (i.e. exitting then running it again) I get the same results..
    Does this mean that the jdbc driver are caching these objects for me? Or is it merely coincidence that the VM is choosing the same addresses over and over again (assuming that toString returns the memory address of the object)?
    Thanks
    Moran

    The easiest way is to refer to the port only by using its qualified name:
    Connection:
    port=[Port|PortFQN]...
    PortFQN:
    ID ':' NUM;
    That defines the syntax of the cross reference to be an ID followed by a
    colon and a number. Now you have to make sure to calculate the qualified
    name for existing ports correctly by implementing your own
    IQualifiedNameProvider, like
    public class MyFQNProvider extends DefaultDeclarativeQualifiedNameProvider {
    String qualifiedname(Port p) {
    return p.getDevice().getName() + ":" + p.getName();
    and bind it in your Guice module.
    Hope that helps
    Jan.
    Regards
    Jan
    Am 31.08.10 05:29, schrieb Ian Buchanan:
    > I want to enable textual entry for an existing EMF model. Basically,
    > this is the model:
    > * Model contains Device contains Port.
    > * Model contains Connection with 2 references to Port.
    > * Device has a unique key within the model but Port is only unique
    > within the context of a Device.
    >
    > Based on the options I've set for EMF (namely some eKeys), I get XMI
    > serialization like so:
    >
    > <connection port1="#//@devices[name='host01']/@ports[name='0']
    > port2="#//@devices[name='switch01']/@ports[name='1']/>
    >
    > Note the type of each reference is still a Port but it needs both Device
    > and Port to identify the referenced element.
    >
    > In Xtext, I would like a simple grammar something like:
    >
    > Connection returns Connection :
    > 'connection'
    > device1=[Device|NAME] ':' port1=[Port|NUM]
    > device2=[Device|NAME] ':' port2=[Port|NUM];
    >
    > I have experimented with this and even have implemented scoping to help
    > choose the port from the device. However, there's no such attribute in
    > my model as device1 and it would be hard for me to change the model.
    >
    > How do I specify to Xtext that the reference for port1 should be
    > constructed with a value for a Device NAME and a Port NUM?
    Need professional support for Eclipse Modeling?
    Go visit: http://xtext.itemis.com

  • Unique Session IDs in Appserver 7.0 ?

    Is the sessionid generated in Appserver 7.0 Standard Edition Globally unique ?
    Is it possible for sessionids generated by 2 different installations of appserver 7.0 to be same ?
    Is it possible for sessionids generated by 2 different instances of one installation to be same ?
    Anyone knows what the sessionids are made of (algorithm ? ).
    Thanks
    dcsit_techie

    it is evident that your jdk is not installed properly
    jar and native2ascii are required for successful install
    make sure these utilities installed properly
    and reinstall ID server

  • Unique Session en web application??  How?

    How can i to force in my web application that my clients can only loggon one time at same time?, local vars in the application? if the client shutdown de PC?, i use OID for authentication, any way?
    Any data, url?
    Thanks

    You basically have to keep track of who is logged in yourself. Use an HttpSessionBindingListener to make sure you are notified when a session expires, so you can let the user back in.

  • How to reference session id from non-apex page

    Hi,
    I am looking to integrate an Apex application with the FreeFind site indexing service.
    Here's how it works:
    You create a form on the Apex page that posts the your search string to the FreeFind website:
              <form style="margin:0px; margin-top:4px;" action="http://search.freefind.com/find.html" method="get" accept-charset="utf-8" target="_self">
              <input type="hidden" name="si" value="70856809">
              <input type="hidden" name="pid" value="r">
              <input type="hidden" name="n" value="0">
              <input type="hidden" name="_charset_" value="">
              <input type="hidden" name="bcd" value="&#247;">
              <input type="text" name="query" size="15">
              <input type="submit" value="search">
              </form>The search results are then rendered on a FreeFind web page. However, you can upload you own HTML template to use when rendering the search results. See the sample template below:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>::title::</title>
    </head>
    <body>
    ::content::
    </body>
    </html>What I would like to do is create a template that mimics the look and feel of my application, providing navigation to pages within my application.
    My question is, how could a include the session id in the links in the template, in order to retain session context?
    Thanks,
    Andrew.

    Andrew,
    Have you considered using Session ID 0? This was designed to assist in SEO for APEX pages. If each time a user hits an APEX page, a unique session ID is embedded in the URL, the search engines did not rank APEX pages well. Thus, if you put a "0" (zero) in the session ID, APEX will still work for public users, and it more SEO-friendly.
    I have used it for my site for some time now: http://sumnertechnologies.com/apex/f?p=10000:1:0
    Hope this helps!
    Thanks,
    - Scott -
    http://spendolini.blogspot.com/
    http://sumnertech.com/

  • Session data is not unique when using SYS_CONTEXT in web service applicatio

    Hi, I am using DBMS_SESSION.SET_CONTEXT in my web service application to set session variables which--according to the documentation, if I understand it correctly-- are supposed to be unique to each session. But if I change the variables from a browser on one client machine, I can then see the changes when I connect from a browser on another client machine. Do all calls to my web service connect to the database as the same session? What happens when multiple clients are connected? I also use global temporary tables in my application. My assumption was that each client that connected would have a unique session. But this doesn't appear to be the case?...or is there something I am missing?

    This has been logged as a bug and was upgraded to severe in March, but nothing has been done on it as far as I am aware. Beware this bug also affects global temporary tables--the same session and everything related to --including session context variables and global temp tables are shared by every call to the web service.
    Service Request 6067517.994 - SYS_CONTEXT SESSION DATA IS NOT PRIVATE BETWEEN MULTIPLE CLIENT SESSIONS has been updated by Oracle Support with relevant information on 18-JAN-07.
    To view the progress on-line via MetaLink, go to this URL:
    http://metalink.oracle.com/metalink/plsql/tar_main.this_tar?tar_num=6067517.994&p_ctryCode=840

  • Session Error - Cannot call getObject on :display.session on a user form

    On an end user form I have a manager label.
    The manager attribute in the user object holds the unique identifier but I must display the full name.
    <br><br>
    So I have the following code to go get the fullname:
    <br><br>
    <block>
    <invoke name='getAttribute'>
    <invoke name='getObject'>
    <ref>:display.session</ref>
    <s>User</s>
    <ref>accounts[Lighthouse].sponsor</ref>
    </invoke>
    <s>fullname</s>
    </invoke>
    </block>
    <br><br>
    Now it does go ahead and display the fullname but at the same time throws the following error on the page:
    <br><br>
    ERROR:XPRESS exception ==> com.waveset.util.WavesetException: Can't call method getObject on class com.waveset.session.LocalSession ==> com.waveset.util.InternalError: ID not passed to ObjectCache.getObject
    <br><br>
    Since it is not a workflow I think I need to use the :display.session reference.
    <br><br>
    Is there another approach I could try? Do you have any suggestions?

    You could also use the following for your session:
    <br><br>
    <invoke name='getCache'>
                      <new class='com.waveset.session.InternalSession'/>
    </invoke><br><br>
    But the biggest problem I see is the string value User. I think it needs the following:
    <br><br>
    <invoke name='findType' class='com.waveset.object.Type'>
                        <st>User</st>
    </invoke><br><br>
    Note: I used st instead of s to avoid a strikethrough.
    <br><br>
    If I'm not mistaken, your code could then look like this:
    <br><br>
    <block>
    <invoke name='getAttribute'>
      <invoke name='getObject'>
          <invoke name='getCache'>
                      <new class='com.waveset.session.InternalSession'/>
          </invoke>
          <invoke name='findType' class='com.waveset.object.Type'>
                        <st>User</st>
          </invoke>
           <ref>accounts[Lighthouse].sponsor</ref>
      </invoke>
      <st>fullname </st>
    </invoke>
    </block> <br><br>
    Best,
    <br><br>
    Andy
    <br><br>
    <b>AegisUSA</b>
    <br>
    Denver, Co
    <br>
    "We are the Identity Company"

  • Problem with Sessions and window.open

    Hi,
    Hi everyone,
    Help Please!!!
    I am working with Sevlet session objects and HTML forms and windows. I have an HTML form for the user to supply a username and password. Once the user clicks submit I need to open another browser window that has no toolbar, no location, no status bar, etc. The user should also be able to go back to that login screen and login again and open a 2nd, 3rd, etc. instance of the application. My problem is that each application is being asigned the same sessionId. I believe it is being asigned to the main login window and thus to the other child windows it opens. Is there a way to work around this? Do I need to make the user open another browser window to login? I need to be able to let the user open multiple instances of the application with unique session ids for each.
    Any insight is GREATLY appreciated on this topic. Anything you can tell me about sessions (Java), IE, window.open would help greatly!
    THANK YOU IN ADVANCE!!!
    MA

    To achieve this, you must introduce another level of
    abstraction to the Servlet specifications. When you
    work with JSP/Servlets you use mostly the HttpSession
    to handle user related tasks, and the aplication
    context, for things that are common to all users. But
    inside the HttpSession scope, you want to create
    containers that have 'smaller' scope and are uniquely
    identified.
    A ipothetical scenario :Let's say that you must have
    multiple connections to several databases, on each
    database user rights beeing diferrent, and you must be
    able to track user actions globaly, and eventualy
    capture a 'Close Application event' and close all db.
    connections.
    1. when the user first accesses the login frame create
    the HttpSession. In the HttpSession object, store a
    Hastable (let's call it 'ConnectionTable'). Each
    object in the Hashtable must identify uniqely a
    database connection. Now, to create unique identifiers
    ids, make the keys in the hashtable java.lang.Long
    objects, created using System.getCurrentTimeMillis().
    This guaranties there will be no possible confusion.
    From each new open window, on each request to the
    server, along with the usefull parameters, send the
    connection identifier. When proccessing the request,
    select the object from the Hastable wich corresponds
    to the ID.
    2. Now, the values in the ConnectionTable, must act as
    the containers that I mentioned in the first
    paragraph. The simplest way to do this is to have
    again a Hashtable derived class to do the job, wich
    exploses methods similar to HttpSession: setAttibute (
    Object key, Object value) and getAttibute ( Object
    key, Object value). This container may use internally
    a Hashtable to store object, and explose only the
    getAttribute and setAttribute methods for clarity. Any
    way, this is a problem of implementation. Let's call
    this class CustomSession.
    Now, a textual activity diagram:
    1 user accesses the main page, you start a new
    HttpSession; In the HttpSession object, store the
    ConnectionTable object.
    2. the user enters the userID and pwd and adatabase
    name, and a new window is opened. Let's supose the
    data entered is valid.
    3. when you process the login data, you create a new
    CustomSession object. you put in it whatever you would
    put in your HttpSession. You generate a unique
    identifier using System.CurrentTimeMillis(). Put the
    CustomSession object in the ConnectionTable, using the
    generated id as key. Send the response.
    ..... later on .....
    100. the user asks for a particular action to be
    performed - e.g. a row deletion. The page contains a
    form with text field where the user introduces the
    row number, a submit button and a hidden input with
    the ID.
    101. you process the data. Get the ID from the request
    object, get the ConnectionTable from the session, get
    the CustomSession using the ID as key, do whatever
    your logic was doing, but obtaining the objects from
    the CustomSession instead of HttpSession
    NicNic,
    Very slick idea. I think that it could work and it seems that there would be not security issues because the id that you would store on the client side is the Unique Identifier and not the actual Session Id. Do you forsee any security issues for this implementation?

  • How to change the JCO reference to an existing model

    Hi
    We had created a few models with the 2 - default (WD_model..) JCO references, now is it possible to change the references to a different custom /name without re-importing the models again ?
    The issue for us is very critical because, we need to maintain unique reference for all the models under each application for the same server.
    please let us know asap.
    thanks
    sathyanarayanan

    Hi Sathya & Ravi,
    If you want to change only the JCO Destinations  that your model refers to, then its very much possible to change their names.
    But if the model stucture has got changed , then you should reimport that.
    I guess, trying out the following steps for changing the names will work out for you.
    1) For Medata Dest--
    a) Click on the local disctionary stucture that has been generated by importing the model.
    b) Click on the properties tab on the bottom right corner.There you shoulb be able to change the Metadata dest name.
    2) For Application data Dest-
    a) Right Click on model classes (model_Input & model_output) &  then click EDIT.
    b) Same Way, on the bottom right corner , Change whichever proerty you want to alter inlcuding the Dest Name.
    In this way, you can mainten unique JCO references for all the models you are using in your project.
    ReBudild & Redploy the entire project . Create the New JCOs Destinations in the content Admin & happily run your application.
    Regards,
    sandip

Maybe you are looking for

  • URGENT Help needed re: Sample rates

    Hi all, I am working on a TV project and the delivery deadline is looking. My music projects are all set to record at 44Khz in logic but the client wants the files delivered 48Khz and 16bit audio. I have recorded a lot of guitars and so would like to

  • System env in jnlp file

    hi, is it possible to do something like this in jnlp file, somehow? some.jnlp: <?xml version="1.0" encoding="UTF-8"?>      <resources>           <property name="my_property" value="${HOME_DIR}/some_subdir">      </resources> </jnlp>i need to use syst

  • When i reverse engineer CSV file into datastore It is not diplaying coloums

    Hi All, When am trying to do reverse engineer the CSV file in the datastore it is not displaying all the Coloums at a time. Can anyone suggest me , how to do it Thanks & Regards: Vamsi

  • Smsts.log in SCCM 2012

    Hi, Where I can find smsts.log file in SCCM12 server? I am not able to find the same. Is the log name changed to some different name? Regards, Shishir Kushawaha "If this thread answered your question, please click on "Mark as Answer"

  • Service sid XDB is down alert

    I constantly receive the alert <SID>XBD is down. We are not using XDB nor DISPATCHERS, or multi-threaded servers. At database creation time, from dbca, the parameter DISPATCHERS had a value. Afterwards we created a pfile and removed this parameter an