Maintain session on new browser request

Hello,
I am developing a mobile web application. When the user is logged into the application a session is created which is normal.
In Some occasions I have to push a separate web page onto users mobile while the user is still logged in of course.
How do i make sure that the pushed web page is also in the same session as the one which was created when the user logged in?
thanks

Dear ,
the session remain active untill its requested false or its timed out.
you can make sure by using the session variables , in the new web page.
Cheers
Varun Rathore

Similar Messages

  • How take a session to new browser?

    Hello i am using tomcat.
    Simple example there are two servlets. When i am applying to first session is created. When i am presing some button and applying to second servlet but in new (IE) browser. How to get this old session in this new browser?
    Have anybody some ideas?
    Thanks

    Should i use target "new" instead "invoice"?Doesn't matter. Managing the sessions as I said it is the safest way IMO. From the first request, get the session ID, add it to a hidden input field and then go by that, instead of asking for a session ID that maybe has changed.
    Or use a cookie, or simply continue working in the same window.

  • Maintaining session across multiple browser windows and page refreshes

    Hi there,
    We're currently developing a Flex application with a couple of session-related requirements that we're not sure how to solve. Before we jump in and maybe go about things in the wrong way, I thought I'd post and see if anyone here knows of some elegant solutions!
    Currently, when our Flex app starts the user is presented with a log-in screen which authenticates the user against our server. Client-server communication is done through BlazeDS.
    Our first requirement is the ability to open a new browser window from Actionscript - this window will load a pdf document. The servlet that serves this pdf should deny the request if the user is not already logged in. The only way we can see to do this so far is to open the pdf url using navigateToUrl() with the '_blank' target, passing a jsessionid token as a url parameter. Is there a better way to preserve session state when opening a new window?
    The second requirement is to preserve some application and session across browser refreshes. Our Flex app has several screens that the user can tab between. If the user hits F5 or the refresh button in their browser, we'd like the app to return to the same screen after the refresh. I've been looking into using BrowserManager to add a fragment such as #screen=2 to the url, but of course we only want the app to display screen 2 if the user has already authenticated with the server. Is there a way to reuse the user's existing session credentials after a page refresh?
    Many thanks in advance for any advice anyone can offer on this. It could very well be that we're missing something about how BlazeDS uses / exposes session credentials that would make all of this easier to implement than we currently realise!

    We use javascript to pass values between a 'data look up' window and the originating Servlet. If this is of any use, I can send you some examples.

  • Session across new browser windows

    Hi All,
    I am facing an issue with HttpSession when trying to open new windows in my web application and trying to acess the session from the new windows and want your expertise in solving this problem.
    Here is the scenario:
    1. The web application is opened in a browser window, this creates a new session and the JSP adds some stuff to the session.
    2. Down the line in the app using the menu's user invokes a JSP in a new browser window using window.open JavaScript command.
    3. This JSP tries to get some information from the session (which was added by the opening JSP) and fails as it gets a new session. I know this coz i checked the session ID in both JSP (opening JSP & new JSP) and they are different.
    Is there a way I can aviod this. Can the new JSP join the existing session?
    Thanx a lot in advance for all your help on this.
    Rgrds,
    Ritin

    Well cookies are enabled on the machine but I am not using anything special. I am just sending the request and using the session object made available by the JSP container ('session' variable in JSP).
    What I am doing is just submitting the request in the new window without any URL encoding or anything.
    BTW can you explain what you meant by URLencode. How can I do that?

  • Transferring session to new browser window

    Hi Everybody,
    I am using struts for a webapp and on one of of the pages, I have to put a link which would open a new window for the user. THen new window would have the same data as the original window and would also the user to play around in the new window, that's just the business requirement.
    Lot of data in the original window is coming from and is associated with a session.
    Now how do I transfer ( or refer to or whatever ) the session from the original window to the new window that is opening up. And we are using on IE, if that matters.
    And help and comments would be appreciated.
    Thanks in advance.
    Vikas

    Ok I think my understanding of the situation has changed in the meantime also. So here is what's going on exactly.
    A user is logged into my application and did a search for a claim and is looking at a jsp page (call in claim.jsp) and the data on this page is coming from a value object ( basically a bean called claimVO) and this claimVO is store in the session. And claimVO is placed in session as a result of the search done by user after he logged in.
    The user can hit a link on claim.jsp and open a new window (a popup) to edit the claim he was viewing in the previous window 1. The window 2 being a popup and cookies being enabled would share the same session as window 1 and claim.jsp in window 2 would also be populated from the original claimVO stored in session.
    But what we want to achive here is that when window 2 is opened we start a new session and copy the claimVO from session1(in window1) to session2 and then the two windows behave as two different instances of the applicaiton.
    Now I don't think that it is readily possible (if at all) to share objects between sesssions cause it would kill your security.
    So how could this be achieved. I want to copy an object from one window session to another window session , the point is that the two windows need to have different objects with different states.
    Second idea is the I could use a hashtable keyed by the window id (or some kinda id) associated with a browser window. And store my objects ( or instances ) in the hashtable.
    And the two different browser windows would use the objects based on their windows ids.
    So is there anything called or like browser window id that I can get in my java/jsp code. So each browser jsps in each browser window would use the instances stores in the hashtable(which is stored in the common session) based on the id of the window they are operating in.
    I might have made it too complex.
    Thanks in advance
    Vikas

  • New session created with every request

    Hi there,
    I have an web application that we used to deploy on tomcat, websphere and bea without any trouble. We are trying to move to support OAS and the application gives this peculiar behavior:
    A new session is created with every single request by the client browser. I have searched these forums for the better part of today and read some interesting similar cases but none of the fixes seem to have any effect on my problem.
    Is there a different way I need to request the session object from the request in the app for OAS? Or is there a configuration that I should have? I am deploying the app as a .war file. Is there a better way to deploy on OAS, should I stick the war in a .ear?
    Any help on this would be most greatly appreciated!
    Thanks,
    -Adam

    I have a problem that matches with this subject line but its somewhat different. This original posting wants to create new session and invalidate the existing one but my problem is to keep the session invalide if it has expired for the browser.
    Anyways, here is my problem. I have JSP named entity_actions.jsp which has 3 pop-up links that opens up with code like:
    window.open('restaurantentry.do?entityName=restaurant')
    window.open('districtentry.do?entityName=district')
    window.open('baseentry.do?entityName=base')
    My web.xml has this tag:
    <session-config>
    <session-timeout>5</session-timeout>
    </session-config>
    And the way forward the response for each request is:
    context.getRequestDispatcher(urlString).forward(request, response);
    The code I check for session timeout is:
    private void checkForSessionTimeOut(HttpServletRequest request)
    throws SessionTimeoutException
    HttpSession current_session = request.getSession(false);
    logger.info(CLASS_OBJECT, "Session in checkForSessionTimeOut(): "+current_session);
    if (current_session == null)
    logger.error(CLASS_OBJECT, "SessionTimeOutException has thrown.");
    throw new SessionTimeoutException("sessionTimeOut");
    Now lets say I want to show the end user session expiry page after 5 mins of idle time. Now from entity_actions.jsp when I click/open any one popup first time after 5 mins of idle time/session expire,
    logger.info(CLASS_OBJECT, "Session in checkForSessionTimeOut(): "+current_session);
    this loggers shows current_session as 'null' and I can display session exp mesg on the popup page. But when I click/open any other popup or any other link on the page it DOES WORK instead of having current_session = null, it creates new one. And I can see the sessionid which is different than fist session created on the same base page/browser.
    The same pattern of code used to work on Tomcat and JRun before for showing consistant session expiry on all the clicks being made on the same browswer after session gets expire.
    Why OC4J / JDev 10.1.3 is creating new session on the same browser even after session has expired?
    How can I fix this?
    Thanks

  • Problem when OPEN a new browser session

    Hi,
    I like to open a new browser in my program when user click on the URL.
    I did this:
    Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + URL);
    However, it just didn't open the new browser and it used an existing open browser to launch the URL. I just don't want to lose that session.
    How could I force to open a brand new window?
    Thanks a lot for your help.

    I have my browser configured so that requests like that open up in a tab in the existing open browser. I did that because I want it that way. And if I am using your program, I still want it that way and that's all there is to it. It's my computer and my browser and you don't get to override that.
    However, if you don't like how it's working on your computer then go ahead and change your browser's setup.

  • Af:fileDownloadActionListener - any way to force new browser session?

    Hi all
    I'm using af:fileDownloadActionListener to download a file.
    It works fine except for one thing:
    For some file types it does not open a new browser session but just replaces the existing page content.
    That's really ok by itself, but we have a problem if the users presses the browser Back Button to get back to the application.
    As we're using partial page rendering and af:region this will result in an error:
    Error 403--Forbidden
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.4 403 Forbidden
    The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable
    So my question is: is there any way of forcing a new browser session to open when using af:fileDownloadActionListener?
    We're using JDeveloper 11.1.1.1.0.
    Regards,
    Tove

    Hello
    I have the same problem
    Frank, is it possible to know when we'll have the correction available.
    It is just to inform our client about this issue.
    Thx
    Jack
    PS: is there a workaround till the correction is done?

  • View requests result should open in new browser window

    Hello !
    I am new in OAF. And I am tired of looking forsolution...
    I have a requrement. In the "Request Monitor" page, requests result should open in a new window. It means that each user's click on "View request result" should open in a new browser window.
    I have found url like this in access.log:
    OA_CGI/FNDWRR.exe?temp_id=1069558080
    This url returned from package : fnd_webfile.get_url. And this package is used in about 30 java files...
    And I do not know which one of these files is used in my page...
    Finally, I want to add ' target="_blank" ' to result html code. Like this:
    Maybe It can be done a more simply way?
    Thank you!
    P.S. Here java files:
    Which one is used in "Monitor Request"???
    oracle\apps\az\util\CpLogViewUtil.java
    oracle\apps\fnd\cp\fileops\
    FileConstants.java
    FNDFSFileFetch.java
    oracle\apps\fnd\cp\request\
    RemoteFile.java
    oracle\apps\fnd\cp\util\
    RemoteFile.java
    oracle\apps\fnd\cp\viewreq\server\ViewRequestAMImpl.java
    oracle\apps\fnd\oam\bizexcep\handlers\
    BflowContextDetailsHandler
    oracle\apps\fnd\oam\bobj\activity\
    FRDLog.java
    oracle\apps\fnd\oam\bobj\adconfig\
    AppsCtxtCompFileList.java
    AppsCtxtFiles.java
    oracle\apps\fnd\oam\bobj\manager\crm\
    CRMProcessLog.java
    oracle\apps\fnd\oam\bobj\manager\views\
    ICMProcessLog.java
    ManagerProcessLog.java
    oracle\apps\fnd\oam\bobj\requests\views\
    RequestView.java
    oracle\apps\fnd\oam\cp\fileops\
    FileConstants.java
    FNDFSFileFetch.java
    oracle\apps\fnd\oam\launchMode\restricted\handlers\
    RestrModeHandler.java
    oracle\apps\fnd\oam\sdk\util\files\
    FNDFSUtil.java
    oracle\apps\fnd\oam\sdk\util\log\
    LogHandler.java
    oracle\apps\fnd\oam\sdk\util\support\
    AppsSignatureNode.java
    oracle\apps\fnd\oam\servlet\ui\handlers\activity\
    DatabaseSessionHandler.java
    FRDFilesListHandler.java
    FrmSessionHandler.java
    oracle\apps\fnd\oam\servlet\ui\handlers\adconfig\adv\
    AdvCfgNode.java
    oracle\apps\fnd\oam\servlet\ui\handlers\debugwb\
    SearchPGHandler.java
    oracle\apps\fnd\oam\servlet\ui\handlers\gsc\
    SvcCompDetailsHandler.java
    oracle\apps\fnd\oam\servlet\ui\handlers\request\
    CpRequestHandler.java
    oracle\apps\fnd\oam\servlet\ui\handlers\services\
    ServiceProcHandler.java
    ServiceStsHandler.java
    oracle\apps\fnd\wf\oam\bobj\util\
    WfQuery.java
    oracle\apps\fnd\wf\oam\handlers\
    WfComplWorkItemHandler.java
    Edited by: rsn on 01.12.2010 15:43
    Edited by: rsn on 01.12.2010 15:46
    Edited by: rsn on 13.05.2011 11:27

    Anand, thank You very much!
    "In your page, is "View request result" a link ?
    If yes then
    click on "Personalize Page" link which is at the top right corner of the page. Select "Complete View" radio button and click on "Expand All" link. Search for item "link". If your page has more than one link then choose the link item which is related to "View request result". Click on "Personalize" pencil icon corresponding to "link" item/region. Change the "Target Frame" property value to "_blank" under "Site" level. Click on "Apply" button.
    -Anand"
    This is a great power in "Personalize Page"!
    I make solution in this steps:
    1. Activate personalization to user, by setting profile "Yes" value on user level:
    Personalize Self-Service Defn / FND_CUSTOM_OA_DEFINTION
    2. Personalize 2 regions items (Image & Link)
    ( Don't ask me how !!! ;)
    Image have not Target Property. I move URI to Link Region Item and remove in step 4 from Image Region Item.
    3. Export page and my region
    java oracle.jrad.tools.xml.exporter.XMLExporter /oracle/apps/fnd/cp/viewreq/webui/CPViewRequestPG -rootdir $APPL_TOP/personalizations -username apps -password *** -dbconnection "(description = (address_list = (address = (community = tcp.world)(protocol = tcp) (host = localhost)(port = 1521)))(connect_data = (sid = prod)))"
    java oracle.jrad.tools.xml.exporter.XMLExporter /oracle/apps/fnd/cp/viewreq/webui/customizations/site/0/CPViewRequestPG -rootdir $APPL_TOP/personalizations -username apps -password ***-dbconnection "(description = (address_list = (address = (community = tcp.world)(protocol = tcp) (host = localhost)(port = 1521)))(connect_data = (sid = prod)))"
    4. Modify in notepad /oracle/apps/fnd/cp/viewreq/webui/CPViewRequestPG.xml (remove URI from Image Region Item) from this file.
    5. Install script script for PROD like this:
    cp -R personalizations $APPL_TOP
    java oracle.jrad.tools.xml.importer.XMLImporter $APPL_TOP/personalizations/oracle/apps/fnd/cp/viewreq/webui/CPViewRequestPG.xml -username apps -password *** -dbconnection "(description = (address_list = (address = (community = tcp.world)(protocol = tcp) (host = localhost)(port = 1521)))(connect_data = (sid = prod)))" -rootdir $APPL_TOP/personalizations
    java oracle.jrad.tools.xml.importer.XMLImporter $APPL_TOP/personalizations/oracle/apps/fnd/cp/viewreq/webui/customizations/site/0/CPViewRequestPG.xml -username apps -password *** -dbconnection "(description = (address_list = (address = (community = tcp.world)(protocol = tcp) (host = localhost)(port = 1521)))(connect_data = (sid = prod)))" -rootdir $APPL_TOP/personalizations
    6. After install on PROD, You need to "bounce the apache". Additionally, it need to modify / upply button once on a region link. Right now I can not explain exactly, how it helps... But finnaly changes after 'XMLImporter' command will applyed after modify / upply manipulations.
    Edited by: rsn on 13.05.2011 11:16

  • I close Firefox session and then try to open a new browser window - get message that Firefox is still running and I need to shut down and restart. Need a solution

    I close a Firefox browser and at a later time want to open a new browser window but get message "Firefox is still running and I need to shut down before I can open a new session" I do not want to shut down as this is laborious - I can go into task manager and processes and click on Firefox and end session that way but this is not the solution. Firefox seems to be running in background but I cannot open a new session window without doing on of the above.

    Have a look at this post, see if it is of any help (though related to Vista, but same issue can be there with Window 7 also)
    http://www.vistax64.com/browsers-mail/265937-firefox-exe-still-running.html

  • Open new browser window  and session

    My application A is launched from other application B.
    User first login to B, B has a link to A, when user clicks on link to A I open a new browser with the url for A , A creates a new session etc.surprisingly when user logs out in A session in B also expires and vice versa , please suggest me how to have different session when one browser opens a new Browser for a new application.

    The problem here is: browser is sharing session with new window. And moreover different browsers behave differently creating/sharing sessions in case of new tab, new window etc.
    Try URL rewriting instead of cookie for session management. Not sure whether this solves the problem.
    Please have a look here .
    Thanks,
    Mrityunjoy

  • Just installed Firefox 9.0.1. When opening a new browser session, two tabs will open. One is my home page and the other is a Firefox welcome page. I just want my homepage to open. How do I achieve this? Thanks.

    Just installed Firefox 9.0.1. When opening a new browser session, two tabs will open. One is my home page and the other is a Firefox welcome page. I just want my homepage to open. How do I achieve this? Thanks.

    See these articles for some suggestions:
    *https://support.mozilla.org/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    *https://support.mozilla.org/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    *http://kb.mozillazine.org/Preferences_not_saved

  • How to get second session in second browser

    I have got an B2B application that has 3 types of users - [System]Admin , Vendor & Clients.
    In one of the use cases an 'Admin' user can launch a new window [browser] on behalf of client or a vendor and do whatever he wants . All the while, his ie. admin user's ID is maintained in the first browser.
    The issue I am facing is when I open a new/second browser [on clicking of a link] on behalf of vendor /client, my admin user ID is getting replaced with Vendors/Client in the first browser as well. Mean to say, I am able to open a new browser, work on behalf of a client /vendor but when going bak to the first browser[admin's] user ID and other admin user related information is not available and are found to be replaced by the vendor/client information
    FYI: User ID is fetched/maintained from Session.
    Can anybody tell me how to create a seperate session for the second browser so that I can parallely work on behalf of my ownself[as a Admin user] and also on behalf of a Vendor/Client user on two different browsers.
    Message was edited by:
    Venkyt

    Should i use target "new" instead "invoice"?Doesn't matter. Managing the sessions as I said it is the safest way IMO. From the first request, get the session ID, add it to a hidden input field and then go by that, instead of asking for a session ID that maybe has changed.
    Or use a cookie, or simply continue working in the same window.

  • Load balancing 10g forms - Connection from new browser window not supported

    Load balancing 10g forms - Connection from new browser window not supported
    We're experimenting with using webcache to load balance between multiple applications servers running OC4J forms processes.
    We currently have one machine with infrastructure and mid-tier (BI & Forms) installed, which is being used for the webcache functionality, this is load balancing between 2 other servers each of which just have the mid-tier (BI & Forms) installation
    In order to get this to work, I had to follow the instructions in the Forms deployment guide : http://download-uk.oracle.com/docs/cd/B14099_11/web.1012/b14032/tuning.htm#sthref707
    The main gist of this is that you need to set the following in the orion-web.xml file in order that the sessions are maintained:
    <session-tracking
    cookies="enabled">
    </session-tracking>
    This all works fine in most cases.
    The problem I am having is if I do one of the following on the client machine:
    1) From IE6 / IE7 run a copy of a forms application. Then open a new window using the "New Window" menu option, and attempt to run another forms application.
    2) In IE7 or Firefox 2.0 open a copy of the forms application, and then open a new tab and try and open another forms application.
    If I try either of these I get a FRM-92101 error, and the following is displayed in the java console:
    oracle.forms.net.ConnectionException: Connection from new browser window not supported
    From trawling various forums (including metalink and otn) it looks like a problem with the way coockies are handled.
    Unfortunately the usual workaround is to ensure that the session tracking option in the orion-web.xml file is disabled.
    The problem is that I need this enabled in order for the load balancing to work.
    Does anyone know of any other workarounds or patches that might help resolve this?
    We're using Application server 10.1.2.0.2 running on windows 2003 servers.

    You were right. Carriage returns were stopping it from working (the document is laid out over separate lines, so I assumed it would make no difference...).
    I've now managed to get it so the forms at least run, but they are all being run in the forms OC4J instance on the same machine as the OHS.
    Has anyone actually managed to get this to work, or am I doing something wrong?
    I did wonder if using an OHS instance on a machine with no forms installation would make any difference?
    I had raised a support call via metalink on this subject, but they eventually came to the conclusion that the only way to do this is with a hardware load balancer (Despite several documents suggesting that webcache is the way to go (including the forms deployment manual)).
    I'm at the point now of giving up and writing some custom scripts to do the job instead...

  • Session regeneration at every request

    Hi All
    i know that the getSessionId gives me the current client session, this session is the same for every browser windows i open without closing the application before open a new browser window.
    i need to have a different session every time a client makes a login in the jsp page
    how can i generate a different session for every client request without closing th browser?
    thanks;

    hi,
    ie once u did login and without logout, again u r trying to login in the same browser. Correct?
    eg:
    now u r in ( Logged in )
    http://localhost:8080/mybank/transaction.jsp
    and removing /transaction.jsp from addressbar
    now addressbar contains http://localhost:8080/mybank and u r trying to access Again.
    Correct ?
    if this is the situation, at the Time of login invalidate the Existing session and create new session.
    and set values to new session( that will be there in ur code)
    AE

Maybe you are looking for

  • My I-Tunes fails to open in Windows 8.1 not responding is all I get

    My I-Tunes fails to open in Windows 8.1 not responding is all I get is this the best Apple can do for it's customers

  • Simple Question...how to import a playlist to my iTunes library?

    I have been trying to get this right. I have some songs on limewire and Windows Media Player and want to import them to my iTunes library. Some of the songs popped up on there...how I dont know. I have created playlists of the songs I want to import

  • Calling a function that outside a package in a package

    Hi i have a file in a package which must call a function which is located in the same directory as the main program file. but the package can not find the function. Is there anyway the class in the package can call the function whcih is in a differen

  • XI Transport issues to a Cluster?!

    All, We have 2 application servers in our cluster. When we do the file export / import, we do it only on one. How does this get replicated to the other server? We are seeing some intermittent issues - and im seeing if there is a place where you can c

  • ODBC timeout error

    I have a site I created some time ago in DW connecting to a SQL database using an ODBC connection. Some of the queries are now taking so long that I have started getting these timeout errors; Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x