Session not shared between multiple wars, with no cookies

I posted an earlier query on multiple wars in the same application.
Actually session is maintained and getting shared on the server when
browser supports cookies.
When Browser does not support cookies i have the following problem,
a) Without cookies URL's(href tags) work fine because they are bieng
rewritten.
b) The first form i call always has hidden tags with session id value
and it works fine
c) But in all susequent forms there is no hidden session id.(My forms
are all JSP pages.).
My questiona are
1) under what situations does the server add session id hidden tags in
html form.
2)And how do I get them created automatically when browser does not
support cookies.
3) And why are the hidden tags being set for the first request. (I read
in previous posts that is because the server does not know if browser
supports cookies for first time) How does it know the second time. What
html header gives this info.

>
1) under what situations does the server add session id hidden tags in
html form.The webconnector should rewrite the sessionid whenever the browser might
not support cookies. (And it has configured to allow URL re-writing.)
Obviously you are having a problem with this, but based on the information
you are providing I don't have any insight on why yet. Works for me. Try
opening a support ticket and/or posting some more information.
>
2)And how do I get them created automatically when browser does not
support cookies.This should happen automatically, unless you have changed the NoCookie
setting in the registry.
>
3) And why are the hidden tags being set for the first request. (I read
in previous posts that is because the server does not know if browser
supports cookies for first time) How does it know the second time. What
html header gives this info.Yes, hidden tags are set for the first request because the webconnector
doesn't know if the browser supports cookies.
The second request it knows that cookies are supported because the browser
successfully has returned the cookie it sent the first time.
David

Similar Messages

  • Can music be shared between two devices with different apple IDs?

    Can music be shared between two devices with different apple IDs?

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    iTunes content can be commingled in the iTunes library on a computer and synced to iOS devices. The computer must be authorized to use the content from the respective Apple IDs in the iTunes Store menu.

  • Can data from Apps be shared between family members with iCloud Family Share?

    I'd like to know if data from Apps can be shared between family members with Family share in iCloud

    no, unless the app has a sharing setting.

  • Please Help: Session context sharing between wars in same app

    I'm using iplanet iAS6.0 SP1.
    I have to share a session among 6 wars inside my application.
    I have tested individual wars and they work fine. Now during integration
    i find that session is not being shared.
    in my application descriptor i have included all the wars and I have
    used the same context-root name for all war entries.
    On of the wars is a login.war and it sets some user previlages info into
    session which has to be shared among all wars.
    I'm not able to get it working.
    My settings in each war for session info go like this,
    <session-info>
    <impl>distributed</impl>
    <dsync-type>dsync-distributed</dsync-type>
    <timeout-type>last-access</timeout-type>
    <secure>false</secure>
    <domain></domain>
    <path></path>
    <scope></scope>
    </session-info>
    I'm stuck here. Documentation says on making session distributed and
    setting dsync-type to distributed should work.
    What else should be done in SP1.
    Is it a must to move to SP2 to solve this. And even in SP2 is it
    straight forward?
    Please help
    my application.xml looks like this............
    <application>
    <display-name>myapp</display-name>
    <module>
    <web>
    <web-uri>mywar1.war</web-uri>
    <context-root>app</context-root>
    </web>
    </module>
    <module>
    <web>
    <web-uri>mywarN.war</web-uri>
    <context-root>app</context-root>
    </web>
    </module>
    <module>
    <web>
    <web-uri>login.war</web-uri>
    <context-root>app</context-root>
    </web>
    </module>
    <module>
    <ejb>myjar1.jar</ejb>
    </module>
    </application>

    Thanks-- that wasn't exactly the solution, since the dates and times are correct and IP addresses on both machinges should have been handled by DHCP, but you solved my problem by reminding me that there is a TCP/IP extension, which I looked at and saw that TCP/IP was turned off. I turned it on, and now everything is as it was an hour ago. So thank you!

  • Session sharing among multiple WAR files inside an EAR file

    Hi all,
    Is there a way where I can share my session object among multiple WAR files which are inside an EAR file?
    Please suggest.

    r035198x wrote:
    Some application servers (like Weblogic) allow to configure session sharing when you deploy the application.Sidenote: which is completely against the servlet spec.

  • How to share session object between multiple WAR's

    I am Using servlet 2.3 & websphere 5.1 application server. I am using multiple war applications in my ear and i am able to share context-attributes & session attributes between wars. Can any one guide me how i can share session object?
    I am getting session -time out in first war even though i am doing some operation's in second war. I want to maintian the same session, even in my second war which was created in my first war.
    Can any one help me. Thanks in advance.

    Hi LNL,
    Can you explain more on singleton solution as you said....
    For session attributes & context attributes i am using persistent storage to retrive them in multiple wars. My problem is how should i use "session object" in my second war which was created in my first war.

  • EJB 3.0 Stateful session bean shared between Servlet's

    Hello
    I have a bit of a noob question regarding Stateful sessions beans.
    I am wanting to know if there is a way that I can share an instance of a session bean between multiple HttpServlet instances?
    I am sending XML messages from a mobile J2ME application, there will be several http POST's made from the mobile client to the server. I would like these multiple POST's to be passed from the handling servlet instance to the same uniquely identified single stateful session bean instance (i can then @Remove the stateful bean when I have finished my several requests).
    I would greatly appreciate any tips anyone could give me.

    If not, your only option is to maintain the
    association yourself by creating a unique id for
    each
    conversation and storing that id along with the SFSB
    reference in the ServletContext. Then you'll
    need to pass the id in along with each invocation to
    retrieve the appropriate SFSB reference.Thanks for your reply.
    Will I always be presented with the same ServletContext instance? Even if the time between requests might be many minutes? Where can I learn more about how to use the ServletContext?
    Thanks!

  • Criteria for dividing an application between multiple WARs

    What criteria are generally used when deciding on the division of a large application between several WAR files?
    I'd imagine that an eBay wouldn't put their entire web application into a single WAR. But I am unsure of what they would consider when deciding how they would split up their application.
    As each WAR file has its own context under the web server (is this correct?), I have the feeling from looking at a few tutorials (and seeing what's in the address bar) that it's to be split up by function (e.g. contexts paths for /register, /checkout, etc)
    Though the above doesn't seem like I'm interpreting their intentions or this concept correctly. If somebody could please help to explain the guidelines behind such a decision, that would be highly appreciated.
    Thank you for any explanation you can provide.

    bravebuddy wrote:
    Thanks for the reply. We are using cookies and all of the WAR files are under the same domain. The issue is when the user moves from a page in one WAR to a page in another WAR, the session data does not transfer with the user (the get a new session).Yes, I already understood the problem. Did you on your turn understood my answer "This is forbidden as per the Servlet specification" ?
    Is it correct to assume the only way to do this is to set up a persistence layer to hold basic session/user information that is accessible from all WARs and then use the common JSESSIONID that they all share (since they are under the same domain) as the Primary Key?It´s not the only way, but one of the ways, yes.

  • Queue data sharing between multiple LabVIEW Executables

    I have 2 LabVIEW Executables(Exe) where one Exe produces data and other one consumes the same. Is there anyway I can use a single queue reference for the same ? First Exe obtains the queue reference number and stores the reference number in V.I.G where as the second Exe read this reference number from this V.I.G. The error from the second VI dequeue was invalid queue reference.
    Is there anyway I can share the same data between different exes with the functionality of a queue ?.
    Solved!
    Go to Solution.

    Ben wrote:
    Each exe is mapped into its own memory space so refs to resource in one context will not work in another but...
    If you exposed an Action Engine in one instance to be used via VI server Invoke Node from the other, the AE (Note: it will be running in the server context) could queue the data in behalf of the client.
    Plese note:
    If the server porcess goes idle all of its resource will be invalidated (including the queue) but a ref to the AE will still be valid. In this case the enqueue op will fail so you have to code to account for this situation. (been there done that )
    This smae approach will work in any network architecture where VI serve can be used. I used this approach about 10 years ago (minus the queue) to allow control of a factory floor from a laptop with a internet connection.
    Ben
    Do you think the same must work with following scenario:
    1. LabVIEW Exe calling a data acquisitio thread dynamically(VI Server) and enqueue the data into a Queue with reference in VIG.
    2. Same Exe calling a TestStand Engine and one sequence inside that calling the same queue to dequeue the data.
    3. Remember that the LabVIEW adapter I use with TestStand is LabVIEW Run-Time Engine(Not development system)

  • HT1495 How do I stop SMS messages being shared between multiple iphones on my itunes account? One is my wife's, one is mine and we do not want each others messages appearing on the other.

    How do I stop SMS messages appearing on two devices on my iTunes account?
    One phone is mine, one is my wife's and we dont want messages being shared.
    We do have contacts and music etc shared.

    If your are recieving mixed information on your phone on multiple devices this is going to be related to iMessage.
    On your phone navagate to settings > messages > send and receive.
    Check the information in that section make sure it relates to your AppleID and your phone.  If you share a AppleID with the individual create a new AppleID for their device and insert that information.
    If the numbers don't remove turn of iMessage restart your phone and turn it back it.
    If all else fails disable iMessage otherwise turning it off is the quickest fix.

  • Cookies between multiple WAR files

              If you were to use multiple Web Applications, deployed in separate WAR files, on
              the same application, could they all use the same Cookie? Since cookies are used
              for storing session info, and all of these web apps would reside on the same managed
              server (clustered group of managed servers), shouldn't they all have the same
              CookieName set? If not, wouldn't the NES plug-in get confused, assuming the same
              proxy path was used to access all of the Web Applications?
              

    If you were to use multiple Web Applications, deployed in separate          > WAR files, on the same application, could they all use the same
              > Cookie?
              Yes.
              > Since cookies are used for storing session info, and all of these web
              > apps would reside on the same managed server (clustered group of
              > managed servers), shouldn't they all have the same CookieName
              > set? If not, wouldn't the NES plug-in get confused, assuming the
              > same proxy path was used to access all of the Web Applications?
              I believe WL either creates a different session cookie for each app. This is
              easy by adding a path to the cookie to restrict its "view".
              However, that doesn't stop you from having a shared cookie.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com/coherence.jsp
              Tangosol Coherence: Clustered Replicated Cache for Weblogic
              "djmv" <[email protected]> wrote in message
              news:3ed77e08$[email protected]..
              >
              

  • Sharing between multiple iTunes accounts

    Need some help with the 6 Apple devices we now have in our house all sharing information, some of which we don't want to be shared.  Here is what we have:
    iMac
    iPod 4
    iPod 4S
    iPad 1
    iPod Touch 4th Gen (2)
    All of these devices share the same iTunes account (mine), but the two phones have different phone numbers (mine and my wife's), and I don't want to get her texts and e-mails and don't want her getting mine.  Can I set up a separate iTunes account for her but still have her have access to all of the apps currently on my iTunes account without her having access to my texts and e-mail accounts?  Or would I need to manually download and then upload each app to her phone if we set up a new account?  I assume music, photos, etc. will not be an issue because I can easily do that manually through the iTunes interface.  It is the external communication functions I'm most concerned about solving. 
    I also want to set up a third iTunes account for the family, which would mainly just be for the two iPod Touch devices that my kids use.
    Thoughts, recommendations, guidance greatly appreciated.
    Thank you.

    It's a misunderstanding that setting the 'iTunes Music folder location' tells iTunes to look at that location.
    The iTunes Music folder location is the location where your next imported CD is stored. The song locations however are stored inside the 'iTunes Library' file which is in ./Users/YourUsername/Music/iTunes.
    Moving the music folder to another location without 'telling' iTunes normally will lead to loss of links. You will see exclamation marks before the song name, telling that iTunes can't find the files.
    Recent versions of iTunes can track a moved folder, when it's moved on the same disk.
    The other users will not see this music. You have to copy the 'iTunes Library' file and put it in the iTunes folder of the other user(s).
    --edit
    Instead of copying the 'iTunes Library' file, you can add the entire music folder to each users library.
    This will enable every user to apply their own rating (which is not stored in the song file, but in the 'iTunes Library' file).
    --end of edit
    They will then have full access to the library, which means, every user can add and delete music from the shared library.
    The methods of sharing music are described here:
    iTunes: How to share music between different accounts on a single computer
    Hope this helps.
    M
    Message was edited by: macmenno

  • Can a single Firefox profile be shared between multiple machines?

    I work in a library where we have multiple desktops that are managed by PC Reservation software and equipped with Deep-Freeze. Rather than have to go from one machine to another every time we want to update bookmarks or settings we would like to have a common profile installed on our local server that all of the machines can refer to. We are not interested in any Cloud based options and would prefer to maintain everything locally. This administration has to be local and we absolutely will not be using a Cloud based option like Sync, XMarks or Delicious. We will simply stop using Firefox in the library altogether before we would resort to one of those options.

    hi,
    I have not tried this, althoug with the webogic rmi and weblogic jndi
    implementation I would guess this is straightforward.
    Binding remote objects in WL JNDI binds the stubs only, not the object
    itself. The worst case scenario here would be for you to implement proxies
    and bind them in JNDI, although I would guess that binding the home object
    should give you the required functionality.
    Just try it, rebind the home object on a different server than the one the
    bean is deployed on and test. My guess is that it will work.
    (I repeat : I have not tested this my self, this is just a suggestion)
    Regards,
    Anders M.
    John N. Armstrong <[email protected]> skrev i
    meldingsnyheter:3a93faba$[email protected]..
    We have a situation involving multiple, but non-clustered, WebLogicservers,
    say Server 1 and Server 2. A client needs to access an EJB which happensto
    be located only on Server 2. We would prefer that the client not need to
    know the exact location of the EJB, but use the naming service hosted by a
    designated server (Server 1) to locate the EJB.
    At a minimum, this would require that both servers bind their respective
    EJB's into a common, shared JNDI naming tree hosted by Server 1.
    Is this possible?
    John Armstrong
    WebLink Wireless, Inc.
    [email protected]

  • Music (only) not sharing between 2 macs?

    I'll see if I can explain this properly.
    In our household we have 2 Macs one an iMac i7, 27" from Mid 2010 and a MacBook Pro Core2Duo from 2006 an iPod Touch 2nd Gen, iPod Touch 3rd Gen and an iPad 2, both computers are set up on OS X 10.7.3 and both are running iTunes 10.6 (The issue iI'll described happened as well in 10.5.3).
    The iPod 3rd Gen and iPad run iOS 5 (the iPod touch 2nd Gen is too old to run anthing past iOS4 and is kinda irrelivent in this issue so ignore that).
    The iMac and iPod Tocuh are set up with my Apple ID for iTunes and iCloud etc and the iPad and the Macbook Pro are set up for my father.
    Today I decided to set up my fathers equipment to use Home Sharing to allow him to stream content from the MacbookPro to the iPad
    I was trying to explain the progession from the earlier form of Sharing libraries to the newer Home Sharing. Explaining that the old Sharing was iTunes on Mac to Mac (or PC) and just allowed streaming. Where as newer home sharing allowed Mac to Mac File transfer and/or Streaming and Mac to iOS Streaming  as long as they were on the same Apple ID and Home sharing was turned on on all desired devices. So I went to show him the older Streaming from my computer to his to demo the difference. Then set up Home Sharing on his devices and show the difference. Except when I did this Music from my computer would not stream to his computer. It did stream to my ipod via home share. And I could Stream Movies and TV shows to his computer via the old sharing system.
    I then tried to sign both computers in with the same account for home share and again Movies and TV shows would stream from computer to computer but music would not, yet it would stream everything to the iPad or iPod.
    All the artwork shows up and everything just no steaming music.
    All that happens when you try to stream music from one computer to the other is you get "Opening URL Connecting" for a few mins then it just sits there at 0:00 with the speaker icon next to the song and no music and no error message, sometimes it just jumps straight to speaker icon without the "Opening URL" dialog.
    Its the Same issue in both directions. I tried Streaming from his to mine and vica versa to no avail.
    Both computers have firewall set to off.
    We're on a pretty standard Netgear WiFi Network with  WPA password.
    So here is a summery of what works and what doesn't
    Orignal Sharing system
    Mac to Mac,  Music Streaming, Does NOT works
    Mac to Mac,  Video Streaming,  WORKS
    New Home Sharing
    Mac to Mac, Music Streaming, Does NOT work
    Mac to Mac, Video Streaming,  WORKS
    Mac to iPod, Music Streaming, WORKS
    Mac to iPad, Music Streaming, WORKS
    Mac to iPod, Video Streaming, WORKS
    Mac to iPad, Video Streaming, WORKS
    Anyone know why its only the Music Mac to Mac not working?

    All Fixed Seems like my fathers VirusBarrier had blocked some incoming trafic from my computers IP addrss

  • Common resources within EAR shared by multiple WARs

    I am designing a relatively small enterprise application using IBM WebSphere Express 5.1 (Lite version). The way the application is packaged, or atleast how I want to package it, is to have two WAR files packaged under the single EAR. One WAR file corresponds to a publicly accessible site, and the other WAR corresponds to a secure section of the site, to be accessed via HTTPs.
    A lot of images, text-based files like JavaScript, CSS and even JSPs (for header, footer, etc.) are common to both the WAR files. For maintenance reasons, I would like for these 'resource' files to be in a common area or in one of the WAR files, but also be referenced from the other WAR file.
    I would like to know what is the possible and best way to store these common resource files. Keeping two copies, one in each WAR file, is what I do not want to do.
    Can JSPs/servlets in one WAR file access JSP, HTML, CSS, JS, GIF, JPG, etc. in another WAR file? Is it recommended to maintain a third WAR file that contains only these resources, and is this even possible?
    I would really appreciate all responses, and thank you all for reading/responding to this post.
    --forum7                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    if the resource is in the classpath (as opposed to being in a disk path) then accessing it must be accessed with a '/' preceding the path.
    E.g. Runtime.getResourceAsStream("/some/class/path/file.gif"); will load the resource from a jar included in the classpath. To contrast Runtime.getResourceAsStream("this/is/a/someFile.gif"); will attempt to load the resource from disk.
    This may be the same with EAR/WAR files.
    (One problem may occurr when the /path/to/image.gif is interpreted by the server: it may try simply to access it as if the image url is from the server root...)
    Happy coding.
    --Xapp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for