Multiple users to share same session

Hi guys. I am writing a Flash game, where the state of the game and the moves will be stored in the session. Several users will be sharing the same game session though.
Flash will send variables containing the move made by a particular player to a Servlet, that will be on a different web server. That Servlet will then return to Flash, when requested an XML response containing the state of the game for the next player.
Lets say there are always 3 players playing per game. How do I share this same session among those 3 users?
Question 1:
Is there a way to store a Vector of sessions in a Servlet?
Question 2:
Supposed the above answer is yes, I could send back and forth an id for the session between Flash and the Servlet. Is it possible to associate a session stored with a particular id? And how would I retrieve that session based on a given id?

Do you want to run multiple games concurrently? If so, the application object won't work, because all the user data will then be available to all users.
I would recommend that you continue to use the session-per-user paradigm. Instead of storing all the game data in session, store it in a global lookup structure (a Singleton or static variable of the servlet, probably a Hashtable). Key the game data for each user off of a unique id (potentially the session id?). In each user session, store the id's of the other users they are playing against.
So, when you are responding to a request from one user, you can quickly get the id's for the other players, use those to lookup the necessary game data for those users, and then use it to create your response.
At that point, all you need is some way to expire the data from your storage structure. If you store a "last access" timestamp along with the game data, you can use a thread to expire old data in much the same way that a session would be expired.

Similar Messages

  • Simulate Multiple users connecting to same session

    Hi All,
    Is there anyway we can simulate multiple users connecting to the same session in oracle using PL/SQL.
    Thanks,
    MK.

    As per the architects in our company, lots of users connect to the same session and access the database.Exactly what does this mean? A single session can service one user at a time. I would wager that the architects are envisioning (or describing) a connection pooling setup where the middle tier server maintains a relatively small number of connections to the database (each with its own session most likely) and users operate by getting a connection from the pool, making a request, and returning the connection back to the pool. At any given point, only one user can be using a connection.
    If that's the case, you would simulate this by simply executing code in a loop in PL/SQL.
    Of course, if this is the case, each connection in the connection pool would its own copy of the collection and so each connection would get its own list of order numbers. You'd have to develop some way to ensure that each session populated its collection with a different set of order numbers.
    Justin

  • There are multiple users with the same display name

    Hi,
    We have a user and when she get an item assigned to her she sees the following alert:
    "There are multiple users with the same display name USERNAME and at least one of them does not have read permissions to some of the files"
    Now I looked in the database and when I run the following query with the username:
     SELECT     
         [ProviderDisplayName]  
        ,[DisplayName]  
        ,[HasDisplayName]  
        ,[Domain]  
        ,[AccountName]  
        ,[UniqueUserId]  
        ,[LastSync]  
      FROM [Tfs_Configuration].[dbo].[tbl_Identity] where displayname like '%USERNAME%'  
    Then I get 2 same usernames back, How can I get rid of one of them ? When I access TFS trough the portal I only find 1 occurence of this user.
    We use VS2013 and TFS2013 update 4
    Best regards

    Hi DSW,  
    Thanks for your post.
    In your query result, please check if these two users have the same Account Name. if they are two different Account Name in result, it indicate there’s two users have the same display name in your AD, please check that two users’ information in
    your AD. We suggest change one user’s display name in AD.  
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Find my Friends : Support for multiple users under the same Apple ID?

    Can multiple users under the same Apple ID use the app to find each other?  My daughter uses my Apple ID with her iPod touch which allows me to monitor her purchases but it seems that only one device under an ID can use the app at a time.  If that is the case then it is a major disadvantage and I will need to go back to using latitude (or Find My iPhone which also allows me to see where all of my devices are at the same time)

    http://isource.com/2011/10/16/how-do-you-set-up-icloud-for-a-family/
    This worked for me.

  • Multiple users on the same ODI installation?

    Hi all
    is it possible to have multiple users working with the same odi installation? We have a virtualized IT infrastructure (citrix and wmware) where we can have multiple users on the same virtual instance. From our point of view, there is no licencing issue since we have a package covering literally everything.
    One of the issues are the config files stored in the installation directory of odi (../bin). Is there a way to tell odi to store them in a different location, eg. the user home?
    Thanks a lot
    Benno

    ODI looks in the current working directory for the configuration files, mostly you would have issues with the snps_login_work.xml and snps_login_security.xml files, but these may be common across all users. (just don't store the username/passwords for the ODI users in them).
    The way ODI works, most of what are creating is stored in the repository anyway, it is only local GUI config stuff that may be stored locally.
    Short answer, yes, you can, but might need to modify the config files a little to make it work.

  • WebTools Creating multiple users for the same User

    I had to make a few changes to a BP in SAP which will synch back into WebTools but now I am getting multiple users for the same contact. For example my user is cspehar_1 now in Webtools there are cspehar_1, cspehar_2, cspehar_3 and so on up to _8.
    This is occuring for several users in webtools.
    What causes this and how do I fix it?
    Thanks,
    Craig Spehar

    Hi Craig,
    There are two ways to cause this that I am aware of:
    1.  Change the "Business Partner Synch Contacts Field" setting after the initial synch.
    2.  Change the Web UserID on the BP contact in B1 (OCPR.U_PRX_SID).
    After that, update the user in WT  and synch. (might also happen if  you update the BP in B1)
    Since the synch is using the OCPR.U_PRX_SID to identify the contact, it will not be able to find it in B1 if the U_PRX_SID has changed.  When it does not find it, it assumes it needs to be created.  This results in a duplicate.
    The solution is to reset the U_PRX_SID back to what it was or set the synch contact field back to what it was.
    Then delete the last created duplicate contact from B1.
    There may be further data corruption issues here.  If orders/quotes/opportunities or other dependant data has synchronized referencing the duplicate user, these data will need to be correct as well.
    FYI, whatever caused this was probably at the root of your order problem as well.

  • Merge iweb sites from multiple user accounts on same computer

    With the previous iweb version, my children created their own iweb sites on their own users, but all under my own .mac account. It worked great.
    But now with the new "upgraded" iweb '08, that isn't allowed anymore.
    So, I created a new user on our computer for all of us to use to maintain our multiple iweb accounts on.
    How can I move multiple iweb sites from multiple users on the same computer into one user?

    Each of the user's work in iWeb will be contained in a single file, Domain.sites2, which can be found in this location on the hard drive for each user account. You will need to copy all of these Domain.sites2 files to an external drive, or, at the very least, burn them to a disk to make them transferable from one user account to another. A flash drive also works great for this.
    Once you have made all of these Domain files accessible from the new user account that you created, you will still have a formidable task ahead of you, i.e., publishing separate sites, from separate Domain.sites2 files, to the same .Mac account/directory. In other words, bringing all of these Domain files together for access by a single user account will not solve the problem. You may very well be able to solve the problem with things the way they are, but it will involve some shuffling of Site's files on the iDisk prior to publishing.
    The method I'm going to give you has worked well for me. So far, here in the forums, I've read posts from (2) other users who were also successful. Conversely, I know of at least (3) other users who have been unsuccessful with this approach. I sure hope it works for you.
    Open System Preferences and go to .Mac. Turn syncing off, if it is on, and leave it off.
    Now, in Finder, navigate to the current Site files on your iDisk, following this path:
    Go/iDisk/My iDisk/Web/Sites/NameOfSiteFolder
    Drag the Site folder that is named for your site, (not the directory Site folder), back one level on the iDisk, into the Web folder. This is where some run into difficulties--you may get an error message that the folder is "in use, and cannot be moved". I have never gotten this message, and am able to move my Site's folders around with no problem on the iDisk.
    If you are successful moving the folder, choose one of your other accounts on your machine, launch iWeb, and Publish all to .Mac. The existing site on the server will not be deleted. Now, go back to the iDisk and move that site folder, (the one you just published), back one level, again, to the root Web directory. Publish your next site, from your next account.
    When you are finished publishing sites, just move the Site folders back to their original location on the iDisk--Web/Sites/SiteFoldersHere. All sites will be accessible from a browser using the web.mac.com/username/nameofsite url.
    It is important to use the Publish all to .Mac command in iWeb. A simple Publish to .Mac command will not put the correct index.html file in place on the server.
    Post back and inform us of your success.
    -Mark

  • Multiple Users Mounting the Same Network Share?

    Hello, first time posting...
    I'll cut right to my main question: Is it possible, on OS X v10.3.9, for multiple users to simultaneously connect to the same network share?
    Here in my office, we have a single Mac that is used by multiple people throughout the day. It has two accounts on it, 'Communications' and 'Studio'. 'Communications' is an Admin account that is used by a co-worker who spends the most time on the Mac. He created the no-limitation 'Studio' account for the rest of us to use.
    There is a certain Windows network share that we both frequently use. We've found that if one user connects to the share first, the other user will not have access to it; using 'Go -> Connect to Server' will result in the share being greyed out in the list, and the share will not show up in the Finder.
    However, there is one way around it. If Studio connects to the share first and then Communications (the admin account) attempts to make a connection of it's own *through a shortcut on the dock*, then a 'clone' of the share will be created on Comm's desktop, with a "-1" after the name (though it might be some other number).
    This may sound like I've answered my own question, but what I'm looking for is a way for the non-Admin account to access the share after the Admin account already has (so that we don't have to log-in and disconnect Communications everytime Studio needs to manage files on the share).
    We have Thursby Software's DAVE installed on the Mac, but I'm not sure how it fits into all this.
    Any thoughts, suggestions or advice?
    Thanks.

    Bizarre. It turned out I could merge them, but only in to the mapped drive - L: - and only by explicitly clicking on the drive icon - if I typed L:\series in to dialog box it converted it back to \\nas\share\series... Not helpful.

  • Multiple users accessing the same data in a global temp table

    I have a global temp table (GTT) defined with 'on commit preserve rows'. This table is accessed via a web page using ASP.NET. The application was designed so that every one that accessed the web page could only see their data in the GTT.
    We have just realized that the GTT doesn't appear to be empty as new web users use the application. I believe it has something to do with how ASP is connecting to the database. I only see one entry in the V$SESSION view even when multiple users are using the web page. I believe this single V$SESSION entry is causing only one GTT to be available at a time. Each user is inserting into / selecting out of the same GTT and their results are wrong.
    I'm the back end Oracle developer at this place and I'm having difficulty translating this issue to the front end ASP team. When this web page is accessed, I need it to start a new session, not reuse an existing session. I want to keep the same connection, but just start a new session... Now I'm losing it.. Like I said, I'm the back end guy and all this web/connection/pooling front end stuff is magic to me.
    The GTT isn't going to work unless we get new sessions. How do we do this?
    Thanks!

    DGS wrote:
    I have a global temp table (GTT) defined with 'on commit preserve rows'. This table is accessed via a web page using ASP.NET. The application was designed so that every one that accessed the web page could only see their data in the GTT.
    We have just realized that the GTT doesn't appear to be empty as new web users use the application. I believe it has something to do with how ASP is connecting to the database. I only see one entry in the V$SESSION view even when multiple users are using the web page. I believe this single V$SESSION entry is causing only one GTT to be available at a time. Each user is inserting into / selecting out of the same GTT and their results are wrong.
    I'm the back end Oracle developer at this place and I'm having difficulty translating this issue to the front end ASP team. When this web page is accessed, I need it to start a new session, not reuse an existing session. I want to keep the same connection, but just start a new session... Now I'm losing it.. Like I said, I'm the back end guy and all this web/connection/pooling front end stuff is magic to me.
    The GTT isn't going to work unless we get new sessions. How do we do this?
    Thanks!You may want to try changing your GTT to 'ON COMMIT DELETE ROWS' and have the .Net app use a transaction object.
    We had a similar problem and I found help in the following thread:
    Re: Global temp table problem w/ODP?
    All the best.

  • Importing Photos and Music from Multiple users on the same Mac

    I am the same person with multiple users on one iMac. I need to have the same pics and music files on all of the user names on the one computer.
    I have the family pack MobileMe plan.
    Where are the files located for the photos and music in iTunes?
    I would like to import them from one user to another user on the same computer.
    Thank you

    Welcome to the Apple Discussions.
    If you Import the files from one User to another then you will use double the disk space on your HD as you will have multiple copies of everything. Why not simply share the files between accounts?
    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.
    Regards
    TD

  • How control multiple users to access same page?

    Hi,
    I am working on a public page where the data pull from
    database base on different UUID. Where this page doesn't required
    login account. It differential by UUID where it send via email.
    What I affaird in the email that contain UUID that might
    forward to multiple users for filling in a long forms with same
    UUID.
    (This form it could be share same department but different
    sections).
    How can I lock this page or only allow accessing by a user
    until been submitted?

    Qoop wrote:
    I tested but it cannot be lock - i open the dept_id:HR in my pc
    and I open same dept_id:HR in other pc which able to view same
    page.
    BKBK wrote:
    That is a paradox. If entry to the page cannot be locked then
    the form should not appear on at least one of the PCs. Could we see
    your code.
    Qoop later wrote:
    anyway, here is the code (simplify version)...:
    <cfquery of DEPT info base on the #URL.UUID#>
    <cfif DEPT recordcount EQ 0>
    Missing dept info <cflocation to xxx.cfm>
    <cfelse>
    <cfif SUBMIT EQ 1>
    TQ for submitting...
    <cfelse>
    code start here...
    <form action= next_page_action.cfm>
    </cfif>
    </cfif>
    I have tested my suggestion. It works.
    I can see where your code is leading to. However, it does not
    follow the line I suggested on 08/08/2007. Its logic is essentially
    different from mine. In my code, the condition for displaying the
    form is in a lock. In your code, the form is displayed
    unconditionally.

  • Import PST files for multiple users at the same time?

    While importing PST files into archive mailboxes, the Exchange 2010 mailbox server went to 100% CPU and memory usage and I could not stop the imports because the EMS stopped responding.  We had to restart the whole server to get back to normal.
    Not sure if importing PSTs was the cause of it it was a coincidence.  We have done imports the same way before without this issue.
    How many PST imports can be done at the same time and how do we queue up multiple users and have the mailbox imports have unique names for each user?  I noticed they are always called MailboxImport and MailboxImport1 and then it starts over as MailboxImport
    again for additional users. So, if more than one user's PSTs are being imported at the same time, we will have multiple identically named imports running.
    We would like multiple users' PST imports to queue up and start automatically when the previous users' imports complete.

    Please try like this. Rename folder name same as alias.  i.e. \\server\share\<alias>. below are examples.
    "\\server\share\jsmith"
    "\\server\share\tjones"
    "\\server\share\rsmith"
    "\\server\share\bspears"
    "\\server\share\mmouse"
    And run below command to take PST from the corresponding
    foreach ($i in (Get-Mailbox)) { New-MailboxImportRequest -Mailbox $i -FilePath "\\Server\share\$($i.Alias)\$($i.Alias).pst" -baditemlimit 50 -acceptlargedataloss ;while ((Get-MailboxImportRequest -mailbox $i | ? {$_.Status -eq "Queued" -or $_.Status -eq "InProgress"})) { sleep 180 } }
    If a folder missing with the alias you will see an error similar to this.I think this will work for you. You just keep only the required PST folders to import in the "\\Server\share" folder. 
    "Unable to open PST file '\\server\share\mmouse\mmouse.pst'.
    Error details: Could
     not find a part of the path '\\server\share\mmouse\mmouse.pst'.
        + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxImportRequest], RemotePermanentException
        + FullyQualifiedErrorId : 27802833,Microsoft.Exchange.Management.RecipientTasks.NewMailboxImportRequest"
    Thanks, MAS
    Please mark as helpful if you find my comment helpful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

  • ChaRM Allowing Multiple Users in the Same CD to be in Edit Mode

    We have upgraded to ChaRM 7.1 but are still using CRMD_ORDER and Transaction Monitor CRM_DNO_MONITOR.  When the Developer completes her change, populates the Current Processor with the Change Manager and clicks Save she keeps the CD open in Edit Mode.  The Change Manager is able to open the same CD and click Edit without any warning on the bottom of the window saying it is being processed by another user.
    When there is a hand off to the next Current Processor, both the previous and current user are able to be in edit mode.  I don't recall this being allowed before.  Has this changed with 7.1?

    DGS wrote:
    I have a global temp table (GTT) defined with 'on commit preserve rows'. This table is accessed via a web page using ASP.NET. The application was designed so that every one that accessed the web page could only see their data in the GTT.
    We have just realized that the GTT doesn't appear to be empty as new web users use the application. I believe it has something to do with how ASP is connecting to the database. I only see one entry in the V$SESSION view even when multiple users are using the web page. I believe this single V$SESSION entry is causing only one GTT to be available at a time. Each user is inserting into / selecting out of the same GTT and their results are wrong.
    I'm the back end Oracle developer at this place and I'm having difficulty translating this issue to the front end ASP team. When this web page is accessed, I need it to start a new session, not reuse an existing session. I want to keep the same connection, but just start a new session... Now I'm losing it.. Like I said, I'm the back end guy and all this web/connection/pooling front end stuff is magic to me.
    The GTT isn't going to work unless we get new sessions. How do we do this?
    Thanks!You may want to try changing your GTT to 'ON COMMIT DELETE ROWS' and have the .Net app use a transaction object.
    We had a similar problem and I found help in the following thread:
    Re: Global temp table problem w/ODP?
    All the best.

  • Multiple RFC calls in same session

    Hi All,
    I'm looking for a way to execute multiple RFCs (one after the other) within the same "session".  The reason I need to execute them within the same session is because the initial RFCs store information in ABAP memory (EXPORT x TO MEMORY ID y) and subsequent ones will use that information (IMPORT x FROM MEMORY ID y) for further processing.  I thought I could do it all as a transactional RFC call but as one of the RFCs invokes the GUI, it seems to cause complications.  I don't think tRFCs are the correct solution because it invovles client interaction from the GUI in one of the calls.
    Has anyone tried to do this with the .NET Connector before?  I've tried reusing the connection but it seems to get reset after the first call.  Please help!
    Tim.

    Hi Tim,
    How are you doing ?
    A session [when using NCo] is the length of time that the connection is open.
    please let me know why the connection is being reset.
    the client number is a mandatory attribute in any connection string, it is a part of a composite key which uniquely identifies the user
    please let me know how you would like to proceed ?
    with respect,
    amit

  • Multiple web services sharing same session?

    I was wondering if anyone has ever implemented multiple web services for an application that allowed the web services to share the same session?
    Furthermore, I was wondering if support might be included/buried in the WSDL spec. somewhere?

    There are a number of standards emerging to support long-running conversations among Web services as well as Web service composition. Can you expand on what you're trying to achieve?
    Doron.
    Collaxa, Inc.

Maybe you are looking for

  • At the time of creation of POaccount assignment is coming mandatory

    Dear all; At the time of creation of PO system showing the msg that the  account assignment is mandatory for the material ,how to overcome this? Kindly suggest whre in material master record I can change settings for account assingment ,or the contro

  • Complex SQL query return type

    I am trying to take a complex query that I was running inside of C# code and turn it into a stored proc so that it performs much better. I was doing quite a bit of looping in C# code because I am most familiar with that but I know it ain't the best w

  • Garbled text reading pdf in safari

    Hi ALL, In Mavericks 10.9 I have some problems to read PDF online document in Safari 7.0. All of the text is a mixture of !@#$%%^^&*()_+. Is there a fix for to read in Safari. Thank you ... Dimaxum

  • Gantt Chart Component demo - download

    Hi, Is this possible to download demo application presented in The Gantt Chart Component (http://www.oracle.com/technology/products/jdev/viewlets/11/index.html). In our team we plan to start SCRUM methodology and we would like to write similar applic

  • Driver download pages not working

    Hello,   I am unable to acces the support pages to download the drivers for my printer, I have seen others get them by different links provided by the staff here and would appreciate the same.   Thanks for your time