How to keep old session id when a new session is created in web site

Hi,
I have a question about HttpSession in a Struts framework based project development.
I have a web page "a.jsp" in public site (no need login) which can navigate to other pages/links. There is a button on "a.jsp" to popup a new window "pop.jsp" and create a session (session1). Usually, when I navigate to other pages/links from "a.jsp", it doesn't affect this "pop.jsp" and its session1. However, if I try to goto a secure site - a login page "login.jsp" from "a.jsp", since the "login.jsp" needs to kill current session before the login, the current session1 within the "pop.jsp" is killed at that time. When I go back to "pop.jsp", it will create a new session2 and the original session1 attributes does not exist any more. Therefore, I need to save the session1 id in somewhere to compare it with new session2 id when session is changed, and display some message in "pop.jsp".
Do anyone know how/where to keep session1 id? Any sample/suggestion would be appreciated.
Hanna

check reply 2 of [http://forum.java.sun.com/thread.jspa?threadID=5279453&tstart=0|http://forum.java.sun.com/thread.jspa?threadID=5279453&tstart=0]
like that you can comapre

Similar Messages

  • How to keep original aspect ratio when cropping in Camera Raw?

    How to keep original aspect ratio when cropping in Camera Raw? Cant figure it out! With shift, the aspect ratio is 1:1. But I didnt set it to 1:1 (I checked "normal").

    The Shift key works once you’ve set your crop ratio.  DSLRs would typically do 2:3 and others sometimes do 3:4.

  • I created a new library so I can use it for just my music, but now my ipod will only sync to my old library and not the new one I created, even though I'm in the new library when I open itunes.  Any solutions?

    I created a new library so I can use it for just my music, but now my ipod will only sync to my old library and not the new one I created, even though I'm in the new library when I open itunes.  Any solutions?

    The point is that there are four i product users for one computer in my house, and not everyone wants the same music on their device.  Like I said before, the ipod is not syncing to the new library even though I plug it in when the new itunes library is pulled up.  It keeps syncing to the old library...

  • How to connect old aiport express to my new Airport Extreme? My Ipad says "base station e5713b cannot be configured" and my AirPort tool on my PC will not permit me to add my new Airport Extreme network (no network names to choose from)

    How to connect old aiport express to my new Airport Extreme?
    I have a PC running with Win7 and just replaced my Jensen With a brand New Airport Extreme.
    I have set up the Airport Extreme to the internet, Iphones and Ipads and it work as it should.
    I have downloaded latest Version of Airport tool on my PC. In addition i have downloaded the airport tool for Ipad.
    I have reset one of my airport Express and it now shows up both on the Ipad and on the PC airport tool.
    My Ipad says "base station e5713b cannot be configured."
    I have wired the airport Express to my Ethernet to be able to "see it" on my Airport tool.
    My AirPort tool on the PC will not permit me to add the airport Express to my new Airport Extreme network (no network names on the drop-down list to choose from). I wished for an easy set-up, but nothing seems to be plug and play as the Commercial says.. can you please help me?
    Sigve

    Hi
    Thanks for Swift reply.
    Yep - I in fact have two A1088 and one A1264
    I actually bought the new router because the Jensen
    router always lost connection to the Airport Express after some hours or days. I
    always needed to restart my Jensen to play music and that was driving my wife
    mad. The hope was that the Extreme should fix this. Both A1088 have been set up
    to only stream music to two of my stereo amplifiers from my PC’s Itunes library.
    Are the A1088 now useless?
    The A1264 has been set up to feed internet into a Denon Reciever that needed Ethernet cable.
    Please advise
    Regards
    Sigve

  • How to create an automatic email when a new announcement is created

    Hi,
    In Sharepoint 2013, how can I configure it to automatically send an email to all users when a new announcement is created?
    Regards,
    Stephen.

    You have 2 options
    #1 You can set Alerts at the announcement list level as shown below. In the send alerts to users you can add your user emails or distribution list email and choose email as delivery method. You can choose to
    send Announcements on various actions that are there on the form. This is simple way. This send email the out of the box style. You cannot change that.
    #2 The other option is to use SharePoint Designer and set a workflow on changes and send mail. You can customize the look and feel of it there.
    Srini Sistla Twitter: @srinisistla Blog: http://blog.srinisistla.com

  • I changed my apple Id and it was verified and now that i am trying to purchase something on my IPAD its still showing up as y old Apple ID when my new Apple ID was verified and changed

    i changed my apple Id and it was verified and now that i am trying to purchase something on my IPAD its still showing up as my old Apple ID when my new Apple ID was verified and changed

    Log out of your account on your iPad by tapping on your id in Settings > iTunes & App Store and then log back in with the updated version of the account so as to 'refresh' it on it.

  • How to skale or increase text, when i read an ebook created by ibook-author?

    How to scale or increase text, when i read an ebook created by ibook-author?

    If the book is in portrait mode, the text is fluid - top of the screen is a resize option. Basically whole effect is the same as an ePub file.
    If reading a book in landscape mode, resizing text simply isn't an option because it's considered fixed format.
    I've been working with landscape only books and I tend to increase the size of my body text in iBooks Author - to at least size 18. It appears that although this would be large if printed, when displayed on an ipad it's closer to about size 12, which is standard anyway.
    Jenny

  • Hello, i was wondering why itunes retains all old backups of ipad/ipone... is thier a way of overwritting the backups when a new one is created ?

    Hello, i was wondering why itunes retains all old backups of ipad/ipone... is thier a way of overwritting the backups when a new one is created ?

    That is covered here:
    iTunes: Back up your iTunes library by copying to an external hard drive
    What kind of photos are you talking about?
    Ones in the iPod's Camera Roll album are included in the iPod backup that iTunes makes. Photos synced to the iPod or not and they are not in your iTunes library either. You have to back those up separately.
    Also the iPod backup that iTunes makes is not included in your iTunes library. It location is listed here:
    iTunes: About iOS backups. So back that up too.

  • The warning ' This Connection is Untrusted' keeps coming up when I try to connect to a web site.

    The message. This Connection is Untrusted' keeps coming up when I try to connect to a web site.

    Make sure the date and time is set correctly.
    Open System Preferences > Date & Time then select the Date & Time tab.
    Select:  Set date and time automatically
    Then select t he Time Zone tab.
    Select: Set time zone automatically using current location
    Quit and relaunch Safari to test.

  • Is there a way to force a new session so my "on new session" code will run?

    I'm using apex.oracle.com and I find values of application (global) and page items persisting across logins.
    I didn't expect that? I thought they would go away when I logged out of APEX. But I can change the values, logout, and log back in to the same values. And when I login and start an application, it's not running my "shared components > application processes" initialization code which is set "on new session".
    I thought each login would be a distinct new session with it's distinct set of items. (see definition below)
    So when I run an application, is there a way to force a new session so my "on new session" code will run?
    >
    What Is a Session?
    A session is a logical construct that establishes persistence (or stateful behavior) across page views. Each session is assigned a unique identifier. The Application Express engine uses this identifier (or session ID) to store and retrieve an application's working set of data (or session state) before and after each page view.
    Because sessions are entirely independent of one another, any number of sessions can exist in the database at the same time. Also, because sessions persist in the database until purged by an administrator, a user can return to an old session and continue running an application long after first launching it. A user can also run multiple instances of an application simultaneously in different browser sessions.
    Sessions are logically and physically distinct from Oracle database sessions used to service page requests. A user runs an application in a single Oracle Application Express session from log in to log out with a typical duration measured in minutes or hours. Each page requested during that session results in the Application Express engine creating or reusing an Oracle database session to access database resources. Often these database sessions last just a fraction of a second.
    >
    Thanks -- Howard

    I cleaned up the copy of the Select List code in APEX 4.1.xxx which was not operating correctly before. Now it matches what I have in APEX 4.2.yyyy. And, drum roll please, the select list seemingly works fine there (4.1) as well. But now, the initialization code--which was working fine(!)--FAILS in 4.1!
    <font size="3"><font color="red">•<font face="courier new">
    Okay. Maybe this will help. 1) I logged in. Ran the login page but did not login. Opened the "session" window and wrote down the session ID. Logged out and back in. 2) Ran the login page but did not login. Opened the "session" window and .... it has the same session ID? 3) <b>So the session is persisting across logins!! How is that possible?</b>
    (More) When I log into 3 different applications, I get a different session ID for each but repeated logins always give the same session ID for any given session. </font>

  • Trigger a event and send an email  when a new entry is created in a table

    Hi All,
                I have scenario here where i want to trigger a event and send an email too when a new entry is created in a Ztable or an existing entry is changed.
    Please let me know how can i achieve this.
    Please excuse me if you find it basic as I am not very old in Workflows.
    Thanks in Advance,
    Saket.

    Hi..
    For your Requirement workflow not Required.
    Write a  Program to send Mail. This Program has to execute when ever the Save Button is Click, then the mail will be sent.
    Check the program in this [link|https://wiki.sdn.sap.com/wiki/x/nYKdAw ], which send the mail.
    Regards,
    Surjith

  • Creating a web site? How do you do this using iPAD2

    Can you create a web site using an ipad2? If so how do you get started?

    BigTone,
         You can use 3rd party apps to create or edit websites on your iPad.
    Gusto - $9.99 is available on the App Store
    It is a website development environment designed for the iPad
    WordPress - Free is available on the App Store
    Is designed to compliment an existing (WordPress) website giving you options to edit, post, receive comments.
    The question is how savvy you are when it comes to creating a website, there are many 3rd party apps out there to assist you in website creation.

  • I got an iphone 4 as a gift. started using it. the account number i input is same as my existing i phone. I havent done any registration of this new phone in the apple web site.- Do i have to register the I phone? whatsapp how to download?

    i got an iphone 4 as a gift. started using it. the account number i input is same as my existing i phone. I havent done any registration of this new phone in the apple web site.- Do i have to register the I phone? whatsapp how to download?

    madhu_nainan wrote:
    Do i have to register the I phone?
    No, but it's recommended you setup a support profile:
    https://supportprofile.apple.com/
    whatsapp how to download?
    Go to the App store & purchase it.

  • Is it possible to add and view your key words when creating a web site from Lightroom 4?

    Is it possible to add and view your key words when creating a web site from Lightroom 4?

    Hi,
    I had the same problem with
    "java.lang.NullPointerException at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.ViewContainerUIElementAdapter.getContent(ViewContainerUIElementAdapter.java:98)"
    when I included ViewUsages dynamically in an action handler (outside wdDoInit()).
    The code below fixed that problem.
    This code creates a new OutboundPlug for the embedding view with the embedded view as target and fires the plug.
    <i>// Create OutboundPlug
    IWDOutboundPlugInfo outboundPlug = embedderViewInfo.createOutboundPlug();
    //Create navigation link
    rootViewUsage.createNavigationTarget(outboundPlug.getName(), interfaceViewUsage, "Default");
    // fire navigation link
    wdThis.wdGetAPI().firePlug(outboundPlug, Collections.EMPTY_MAP);
    </i>
    I hope I could help you. Probably you don't need the information anymore, but perhaps anybody else has the same problem.
    Regards, Alex

  • When a new user is created on the Server Computer,Why profile for the user is created as computername.username?

    When a new user is created on the Server Computer,Why profile for the user is created as computername.username?

    This is done if there are domain users with the same name. For example, if there is a domain user named 'test' who has logged in on the server, he will get the profile 'test'. If you then create a local user named 'test', the profile 'test' already exists
    and the computer will create the profile 'computername.test'

Maybe you are looking for

  • How to install fonts in adroid based firefox?

    i m using firefox in motorola xoom. i m not able to install add on fonts

  • Can't send mail with mail app.

    Hi everyone When i click "send" the message goes to the draft folder and it stays there. If i try "reply" nothing happens. And with "forward" a new window pops up but i can't send it anyway. It's not a network problem. When i try to write a message t

  • Need to skip the variable selection screen when using dropdown

    Hello Friends, I have created a web template having a dropdown, a table and a text element. Basically I am trying to follow the guide "How to Use a Dropdown Box to Set Variable Values". It shows how to select values for a variable using dropdown. NOT

  • Spaces in searches

    When I am searching for an image that has a space in the name like "1234.2.CR2" in the case of the way Apple now handles duplicate file names I don't get a result for just "1234.2.CR2", I get all images with either "1234" or "2.CR2". This seems like

  • HT1408 save files from mac to extern hd ntfs

    Hi, I have a Macbook pro (OSX mountain Lion), a external HD for backup (format: Expanded MAC OS), and I want to keep using a second extern HD, in NTFS, to copy mainly photos/documents as a 2nd back up. I found a solution of installling a "SL-NTFS" fr