Create multiple sessions

Basically,
I have to create multiple sessions and sessionIDs on one
server, and then pass it off to various clients based on their IP
address. Is this possible (to transfer sessions like that)? How can
I create multiple sessions on the server?

Not sure why you might want to do this but I think it may be
possible doing a screen scrape against the url with the app you
want to create the session on.
Essentially you would need a page the client hits, that would
then do a cfhttp call to the app where you want to create a
session. The cfhttp return will contain a structure and you should
have a new cfid and cftoken on there. do a <cfdump
var="#cfhttp#"> to see what's in there. You'd grab these to
values out of the return and do a cfcookie and set the cfid and
cftoken values to the values you grabbed out of cfhttp.
I've never done this before, but I don't see off hand why it
wouldn't work. If the cfcookie thing doesn't work you may try a
cflocation addtoken='no' and and a url the specifies the cfid and
cftoken from the cfhttp call.

Similar Messages

  • Can we create multiple session in BDC using Call session?

    Hi Experts,
    Can we create  multiple sessions in BDC using Call Session?
    Scenario:
    Program has to upload 1 million records,so can we programmatically create multiple sessions such that after every 50thousand records we create a different session.
    For moment due to large number of records BDC DYNPRO and BDC Field are unable to hold the large number of records,due to which we get a Out of memory error.
    Thanks in advance.
    Shilpa

    Hi
    If ITAB is your table with the data to be transfered:
    Open the first session:
    CALL FUNCTION 'BDC_OPEN_GROUP'.........
    IF SY-SUBRC = 0.
      FL_OPEN = 'X'.
    ENDIF.
    LOOP AT ITAB.
    IF FL_OPEN = SPACE.
    Create new session
    CALL FUNCTION 'BDC_OPEN_GROUP'.........
    IF SY-SUBRC = 0.
       FL_OPEN = 'X'.
    ENDIF.
    ENDIF.
    Here elaborate your data and fill BDCDATA
    Insert the transaction:
    CALL FUNCTION 'BDC_INSERT'
    IF SY-SUBRC = 0.
      COUNT = COUNT + 1.
      IF COUNT = COUNT_MAX.
        COUNT = 0.
    Close the session
        IF FL_OPEN = 'X'.
          CALL BDC_CLOSE_GROUP
          IF SY-SUBRC = 0.
            FL_OPEN = SPACE.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDLOOP.
    Max

  • Can XSQL create multiple session variables using only one database call?

    Right now if I want to set session variables for username and accesslevel, I code out like this:
    <xsql:set-session-param name="name" bind-params="username password">
    SELECT DISTINCT USERNAME
    FROM LKUP_USER
    WHERE USERNAME = ? AND PASSWORD = ? AND ACCESSLEVEL = 0
    </xsql:set-session-param>
    <xsql:set-session-param name="authlvl" bind-params="username password">
    SELECT DISTINCT ACCESSLEVEL
    FROM LKUP_USER
    WHERE USERNAME = ? AND PASSWORD = ? AND ACCESSLEVEL = 0
    </xsql:set-session-param>Is there any way to do it so that I don't have to do multiple queries to the database to set session variables? i.e., something like this:
    <xsql:set-multiple-session-param name="user authlvl" bind-params="username password">
    SELECT DISTINCT USERNAME,
    ACCESSLEVEL
    FROM LKUP_USER
    WHERE USERNAME = ? AND PASSWORD = ? AND ACCESSLEVEL = 0
    </xsql:set-multiple-session-param>Sort of like how bind-params works. Setting bind-params="username password" makes the first ? akin to username and the next ? akin to password.
    Is this functionality already in existence?
    Thanks!
    Malik Graves-Pryor

    Not currently possible to collapse into one request without doing it in a custom action handler.
    A custom action handler can:
    [list=1]
    [*]Get the current JDBC connection from the XSQLPageRequest
    [*]Get the SQL statement to perform using the function getActionElementContent
    [*]Handle any bind parameters specified an a bind-params attribute on the action element by calling handleBindVariables()
    [*]Execute and fetch the row from the query
    [*]Check to see that the return value of getPageRequest().getRequestType() equals the value "Servlet"
    [*]Cast the page request to an XSQLServletPageRequest and call getHttpServletRequest()
    [*]Call getSession() on the request
    [*]Set the session variables you want to
    [*]Close the JDBC statement
    [list]
    will consider a built-in enhancement for a future XSQL release.

  • Creating / Handling multiple sessions

    How can I create multiple sessions with Servlets/JSP?
    The requirement is this:
    An admin-type user logs into my application. There, he can see a list of normal (non-admin) users, and should be able to log into those users accounts. Therefore, it is necessary to start a new session as this user, while the he should still be able to be logged into his admin account (and log into more users accounts, if need be). So, the admin session must remain valid, and for each login into a user account, a new session must be created.
    I understand that this is not possible using the standard cookie-based approach, so I turned them off for the respective context in Tomcat and encoded all URLs using <c:url ...>. Still, I don't know how to start a new session, there seems to be no method to do this. When there is an active session, getSession(false) returns it, that's all I get. So how do I create a new session with a new session id?
    While trying to figure this out, I also noticed some odd behavior in Tomcat (Version 6, though this might apply to other Tomcat Versions or even other web containers. If no session is yet active (like, on the Login page of the application), or the active session is being invalidated (as after logout), a new session is created every time one of those pages is accessed. This also happens if no session id is given at all in the URL (and, probably, if an expired session id is submitted, I didn't try this one yet).
    This is not good, simply speaking. This way, the web container will quickly get swamped with ghost sessions that were, on my part, never created, and never used; still, they hang around until they expire, of course.
    Any ideas? :)

    BalusC wrote:
    Tyrathect wrote:
    Bad approach? Could you elaborate please? :)It is just plain cumbersome and coding is impossible without horrible hacks.Hm, why cumbersome? The only difference between your approach and mine is that I would use two seperate sessions, as if the user had logged in using his username and password, while you would use one session for both.
    As for coding, I see no need for hacks. The admin is supposed to be able to create users, enter/change some contact data and do some settings for the users accounts, and log in as that user (without having to ask him for his login credentials) for support cases etc. Where is the need for hacks here? Except maybe if there is no way to create a session from another session...
    but it wouldn't allow for an admin to look into more than one user account at once (right?) which is somewhat a requirement.So you want to impersonate more than one user simultaneously? What's the benefit of this? If you want to switch between users, just go back to the admin panel and pick another user.Yes, or rather, support staff will want to do this.
    This is a common scenario in the company I work for, where 3 support people serve about 1000 active customers (of another, PHP-based project). Customer calls, a supporter will use the admin account to log in to his account and have the problem explained. If the solving takes longer, he will tell the customer that he will look into it and call back when it's sorted out. Now while he is working on this, the next customer calls, so the supporter will use the admin account again to log in this account, also, to have the problem explained etc. If the second problem is solved quickly, he will then just log out of the second customers user session and simply continue working on the first customers problem which is still active in another browser window.
    Now, if the support people can have only one user session open at a time, they will have to close the first customers user session they were working in (probably having to save some work only halfway done) when the second customer calls, log in to that second customers account, help him, log out of the account to go back to the admin panel, log back into the first customer account, resume work there.
    Long story short, while the first approach enables them to do small tasks on the side while working on a bigger problem, this is not possible in the second approach.
    Still, any idea about the rogue sessions when I wrote about in the last paragraph?I don't understand your doubt. Every request should take place in a session. If it isn't there or if it is invalidated/expired, then the appserver will create one. I don't see how that is a problem.Ok, if this is normal behavior, then no problem. I just got suspicios when sessions kept appearing while I was not creating any myself.

  • Multiple sessions in a single database connection.

    I have copied the following text from Forms Developer2000
    "At runtime, Form Builder automatically establishes and manages a single connection to ORACLE. By default, one user session is created for this connection. However, the multiple-sessioning feature of ORACLE allows a single client to establish multiple sessions within a single connection. ORACLE transaction-management and read-consistency features all are implemented at the session level, so creating multiple sessions allows a single user to have multiple, independent transactions."
    If ORACLE allows a single client to establish multiple sessions within a single connection, I want to leverage on this feature in my application which uses BC4J.
    Can anybody tell me if
    1. its possible achieve this in Java(BC4J).
    2. If Yes, How?
    regards,
    vikrant

    Thank you for your valuable suggestion.
    I believe createing multiple root Application
    Modules, will create as many number of connections to
    database, hence multiple transactions.
    But What I wanted was multiple sessions in a single
    connection, who's behavior will be similar to two
    different connections.Could you tell me the advantage you're looking for in multiple sessions in one connection vs. multiple connections (where connections may be pooled)?
    Thanks.
    Sung

  • Multiple Session Collections

    Is there a way to create multiple session collections based on the apps that the RDS Session hosts are hosting?  For example... i have a collection that has just office 2013 on it, and i wanted to publish that remote app to the web portal.   When
    that user clicks on that app, it will direct them to the office 2013 session collection.   I'm essentially trying to Silo the applications. 
    I hope that makes sense. 
    Thanks,

    I think i found my answer - 
    Set-RDSessionCollectionConfiguration –CollectionName QuickSessionCollection -CustomRdpProperty "use redirection
    server name:i:1 `n alternate full address:s:remote.csbs.org"
    Punch in the session collection name, and set the fqdn of the respective web app server. 
    Hi,
    In most cases there should be no need to set the alternate full address via custom rdp property.  What you can do instead is set the correct published FQDN for the entire deployment using the below cmdlet:
    Change published FQDN for Server 2012 or 2012 R2 RDS Deployment
    https://gallery.technet.microsoft.com/Change-published-FQDN-for-2a029b80
    -TP

  • How do I create a program with multiple sessions?

    I need to allow multiple sessions with this program.
    I realize that it involves threading of some sort, but I'm pretty new to this area and am not sure how I should go about this.
    Here are the instructions:
    "�     Write an application that will create an online dictionary a data file will be supplied that contains a list of words and their meanings. The hash table will contain a key (the word in question) and a value (byte offset of the word meaning stored in a random access file). You will also provide methods for entering, searching and deleting words online. The program must allow for multiple sessions."
    I have most of this all done, and have a dictionaryBroker ready to write the add, delete and search methods.
    But what about the mutliple sessions?
    I'm thinking that my hashTable and RandomAccessFile classes are both going to have to be singleton.
    What I want is for multiple people to be able to run the program at the same time, but if one person adds or deletes a record, I want it to update instantly for everyone.
    But it also needs to run smoothly for everyone using it.
    Thanks for any help, I just need a little push in the right direction here to help get me going.

    Well here is the entire assignment:
    &#61607;     Write an interface for a hash table that satisfies the following criteria:
    The hash table will contain a key (String) and a value (Object)
    Allow for a specific load capacity, if the capacity is exceeded the table is rehashed. The rehash may be called independently
    Must allow for maintaining the hash table (adding modifying etc) the key will not be changed
    Must allow for retrieving information from the table
    Must allow addition using a Map object or one key, value pair at a time
    The addition using a Map and the rehash must be a two pass approach
    �     Implement the interface.
    �     Write a test routine to test all aspects of the interface. The test must calculate the efficiency of your hashing algorithm.
    �     Write an application that will create an online dictionary a data file will be supplied that contains a list of words and their meanings. The hash table will contain a key (the word in question) and a value (byte offset of the word meaning stored in a random access file). You will also provide methods for entering, searching and deleting words online. The program must allow for multiple sessions.
    Submission
    Submit your eclipse project or executable jar file through WebCT. An efficiency of 70% or better must be attained for the assignment to be graded.
    I'm in Canada, not the US.
    It says online dictionary, but I don't think we actually have to do that. I'm pretty sure I can just use a simple GUI to allow them access to the dictionary.
    So, I'm assuming that I just have to make sure that if multiple people are trying to access it at the same time it needs to update at the same time or something. The hashtable was the main part of the assignment so this part shouldn't be too large.

  • Multiple Sessions in CMC for the same user

    Hello,
    Version:  BOE XI R2 SP3
    A user opens an Xcelsius Dashboard.  As they are using the dashboard, multiple calls are being made through QaaWS to the database.  In CMC, we can see multiple sessions created for that user.  However, this is not 100% consistent.
    Why are there multiple sessions created for one user consuming one dashboard?  Shouldn't everything result in one session?
    Thank you,
    Scott

    Thank you Greg,
    The user shows multiple session after opening and refreshing just one Xcelsius Dashboard over and over again.  It is using QaaWS to get its data.
    Also, as you mentioned, we are also seeing problems with Logout.  Sometimes, users click the logout, but their session does not terminate.  Other times, it does terminate.  And, also, sometimes the logout button does not work.  The user is forced to just close the browser window.
    Any ideas?
    Scott

  • How to handle multiple session in ADF using jdevloper11g

    Hello All
    i want to use the form in Multiple sessions.
    i have one sign up form. user enter only 4 to 5 fields & he may not fill the the manditory field & he left.but data base dont give the error to him. but next day he will come at the next day to complet his sign up i.e. when he commit the all detail that time all validation will hapen.
    for that i use one table without constrain to store the temarory detail.& use other table (with constrains) for final submition.
    1) i creat the view n entity for temparory table
    2) & also i create views n entity for Final table
    n i create one methos in viewRowImple file in that file i overrid create method from using this i set the value from tempary to final table...
    but when user left the manditory field then it allow to submit the data in temparory field but when i copy that data to final table(with constrain) n user submit the data then validation happn i.e. "this fild is mandatory".when i click this error message it goes to first screen.
    IS Thiis Possible.. in ADF

    Generally this can be done.
    I see a problem with your use case, which has nothing to do with jdev or java:
    How do you identify the user when he comes back to finish the form?
    For this you can't use information like session cookie or IP address because they change.
    So you have to save some information about the user which lets you identify him when he comes back. All other requirements can be implemented by ADF.
    Timo

  • How to open multiple sessions for one user?

    Sorry for the silly question but I couldn't find it googling or searching through this forum, so I started wondering whether it's possible in SQL Developer to open multiple sessions for one user. I'm fairly new to SQL Developer and databases in general.
    When I open SQL Developer and connect to a schema, a worksheet opens named MYSCHEMA. If I disconnect then connect, another worksheet opens, named MYSCHEMA~1. I assumed these were different sessions, but if I enter into one worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 1
    update my_table set col1 = 0 where row_id = 1
    select col1 from my_table where row_id = 1
    -- shows result is 0and then enter into the second worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 0I would have expected the second worksheet to report 1 because the first worksheet did not issue a COMMIT. Thus, I'd guess both worksheets are the same session? Is that right? If so, how do I have two sessions open simultaneously (opened by same user)?
    I'm trying to implement the code at the bottom of this post, for which testing requires at least two sessions:
    Re: Help with Procedure
    Edited by: tem on Apr 18, 2012 6:44 AM

    Thanks Jim,
    Ctrl-Shift-N doesn't do anything for me. I'm on a mac -- by experimenting it looks like command-N does what you're looking for. This appears to be the same as left-clicking on the "New" icon in the top left corner of SQL Developer, or selecting from the pull-down menu, File > New.
    This opens "Create a New" window that appears to be a wizard. What would I select at this point? Options are: Database Connection, Table, View, Package, ...
    I don't see an option for "Worksheet".
    UPDATE:
    OK, I found that if I select "SQL File", a worksheet becomes available. Perhaps this is what you intended. However, when I issue the command
    select col1 from my_table where row_id = 1;it still returns 0 instead of 1. Hmm, maybe my initial assumption was wrong -- if this is a second (e.g. different) session, should I expect the changes made in the first session in SQL Developer (the UPDATE command) WITHOUT a commit, to be observed in this second session? I thought that changes made in one session were not viewable in a different session until these changes are committed in the first session? If so, how to show this in SQL Developer? I must be missing something basic here.
    Or, is SQL Developer issuing some sort of "auto-commit" without my knowledge?
    Edited by: tem on Apr 18, 2012 8:00 AM

  • Browser multiple sessions

    Could be possible run multiple browser session (different sessions) from e-Test and e-Load?
    Our objective is try to test an application developing with “Oracle ADF Faces” and we need to run load test with different user sessions.
    When clicking the IE icon multiple times we are creating MULTIPLE PROCESSES, meaning that IE is running several times. Opening a new window will just spawn another session within the same process but this share the application session.
    In order to test our system and avoid session sharing we need create "multiple process" from load tools.
    How can we do this?
    Any help are welcome.
    Diego.
    Edited by: DiegoL on Oct 2, 2008 2:47 PM

    Diego,
    As Alex explained, every virtual user that is executed in eload will run inside it's own virtual browser. Every user will run independent of each other, as though they were executing from seperate machines. There is no sharing of cache, cookies or any other session data.
    Your explanation of how a typical real user executes multiple IE processes yet still share session information is understood, but I do not see if there is a technical reason for the seperate processes. Is there some embeded object (i.e. applet) that needs to run as a seperate process? Is the client trying to force a new socket? From you initial description it sounds as though you should be able play your recorded script in a single virtual user container even though there will be no physical process split.

  • How do I create new sessions in Firefox with no add ons ? Need not be logged in user sessions .

    Hi, From our integrated desktop application,We launch web applications .On using firefox to navigate to the webpage which is depending upon the context of the user's page opened,new session has to be created for each user.However I could not find the support parameters in about:config. FF version being used is FF 3.6 .No possibility to include external addons to support this feature.Is there a way to create multiple new sessions ?

    What do you mean by "multiple new sessions"?
    Firefox 31 is the current release version, Firefox 3.6 is over 2 years beyond being supported by Mozilla.

  • Create multiple instance in a database

    is it possible to create multiple instance in a database.if possible then is it possible to activate many instance at a time.(in personal edition)

    Instance in Oracle refers to the Oracle database "engine" - a collection of processes using a shared memory area, accessing a physical Oracle database.
    Multiple instances are possible on the same platform for different physical databases. But not a Good Idea..
    Multiple instances on different platforms are for the same physical database using Oracle Real Application Clusters, aka Oracle RAC.
    Thus your question does not make a lot of sense. My guess is that you are in fact refering to an Oracle session instead as this is "in the database" as you refered to.
    Each client that connect to Oracle, creates/establishes an Oracle session. A single client uses one (usually the default) or more sessions (usually used by a multi-threading client).
    By default, the Oracle Instance supports multiple Oracle (client) sessions. Including Personal Oracle. In the past, Personal Oracle limited (via the Listener) the number of remote clients (i.e. clients on other platforms) that can connect. I would assume that this is still the case. I however do not recall that there were a limit imposed on the number of local sessions that could be created - the limiting factor here is afterall the power and resources available by the PC. It's very unlikely that a common PC will be able to support a Personal Edition Oracle instance and 100's of local client sessions at the same time.
    If you do mean instance as per the strict Oracle definition - why would you want to create two Oracle instances (each with its own physical database) on a PC? That does not make sense on a large db server platform. It makes even less sense on a small PC platform.
    Each Oracle instance has overheads (processing and memory). Each physical Oracle database has overheads (system space, temp space, redo, logs, etc). Why duplicate these overheads?
    On a single platform - what can two Oracle instances (less capable because of reduced resources availability) do what a single Oracle instance cannot do faster and better and more effectively? Thus is it not a Good Idea to run multiple instances on a single platform. (exceptions acknowledged)

  • Need to store multiple session values in flex

    Hi,
         I need to store multiple session values in flex based on the user who logged in.
    For Example, if a user logged in as an administrator and in another windows another user logged in as guest, i need to maintain two seperate session for the two different users.
    Is it possible for maintaining different sessions.
    Expecting your valuable response.
    Thanks
    Jude Paul

    Look at Shared Objects. You can store this information in them by creating a unique object for each type of user.

  • Multiple connections or multiple sessions preferred

    Hi All,
    Is it better to create multiple connections for each sender/receiver or single connection but multiple sessions for each sender/receiver? Assume in my case that there are about few hundred receivers. Thanks.

    Edit : Sorry, bad answer.
    Edited by: Jerome M. on 3 févr. 2011 01:11

Maybe you are looking for

  • Aperture to .Mac Web Gallery Help please. Urgent !!

    Hi, I having been going round in circles trying to figure this out - Q1) I cannot find a way to update to my published .Mac web gallery from Aperture(2.1) When I select the versions that I want to add to the gallery I drag them into the Web Gallery a

  • When will apple debug itunes 8?

    itunes 7.x worked great, foolishly I "upgraded" to itunes 8, and now itunes will not even open. Looking at the boards this is not unique, so why won't apple give access to early versions. An another thing, why does it have to be so hard to copy my ow

  • CIN TAB

    hi, how to get the CIN details tab in vendor master? regards saran

  • Tow interactive reportes in one site

    Hi everyone, Am now to apex and just getting my feet wet with it, thus this has been my first post. my question is, how can i create a project that includes multiple page with multiple tabes each of wich is an interactive report based on spreadsheet

  • AnyConnect SSL Client issue with Mac OS X

    Hello this seems to be a very common issue with AnyConnect working on Mac OS X. A lot of random sites talk about this. I have a Cisco 2801 running IOS 12.4(22)T (ADV ENT SRV) with AnyConnect 2.3 package installed. From Windows I can connect without a