How to clear a session in apex ?

Hi,
How to clear a session in apex other than using clear cache option?
Thanks,
Anoo.

Anoo,
check the APEX_UTIL Package, there you'll find functions like clear_page_cache, clear_user_cache, clear_app_cache.
This could be what you are looking for.
brgds,
Peter
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
Work: http://www.click-click.at

Similar Messages

  • How to clear the field in APEX...?

    Can any body tell me how to clear or reset the fields in the user interface (APEX 4.0)...? i.e., page items... when i click reset button i want all the fields in my region to be cleared...
    thanks,
    - regards,
    Beginner...

    Create a new process, select "Session State" as process category. Select "Clear Cache for all Items on Pages (PageID,PageID,PageID)" as Process Type.
    Set the conditions to bind it to your button.
    Best Regards,
    Gokhan Atil
    If this question is answered, please mark appropriate posts as correct/helpful and the thread as closed. Thanks

  • How to clear all session data in adf through coding?

    Hi Everyone,
    i have created many pages in an application.I want to clear all session data when i get back to my first page.
    how to do that?
    such that my application should run as i am running for the first time.
    Thanks.

    Hi Jabr,
    i have used this code in initMethod() (Before phase) of my page.
    ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
    HttpSession session = (HttpSession)ectx.getSession(false);
    session.invalidate();
    this code got executed but the page has 2 lovs.
    im getting error null pointer exception that EmpLovVO not found.
    if i remove the above code then the page is running correctly.
    What to do now?
    Thanks.

  • How to clear items / cache in Apex 4.2

    Can someone explain how clearing cache or session state processes are supposed to work in Apex 4.2?
    I have an application that allows the user to look up records by last name or by social security number
    A look up by SSN is one to one and takes the user to a detail page
    A look up by NAME displays a list of names where the user can select a user and display the same detail page
    The problem is that the application retains the social security number from one look up to the next. So it keeps displaying the same record
    even if you enter or select a different SSN.
    I've tried creating session state processes to either clear specific items or clear the cache on a page, but nothing seems to work.
    Maybe the problem is that I'm not understanding the options for creating these; it says things like  on load before headers, on load after headers, on submit before calculations, after calculations, etc
    The application is read only.  Logically to me, if you are linking from one page to another you need to save the value in the item  but if you are doing a  new search you need to clear it
    So I thought that on the detail page I should clear the items, or clear the cache on the page after submitting
    But can't get this to work

    heres an example
    Page 1 has items P1_SSN and P1_NAME  as well as hidden items P1_TEXT and P1_TEXT2
    The button affiliated with p1_NAME takes the user to page 2 that displaces a list of match names. it has a link which goes to page 3 where P3_SSN matches #SSN#
    The button affiliated with p1_SSN takes the user directly to page 3 where p3_SSN matches #SSN#
    If I log in and search by SSN first, when I get to page 3 I have the correct record
    If I look up by name , I get the list and select a record by SSN I still have the correct record
    then I go back to Page 1 and search by SSN, entering a new SSN. I always get what ever record I previously pulled up when searching by name and selecting from the list
    On Page 1 , I have a process that says on load before regions clear items and I list all the items
    Similarly  on page 3 I have a process after submit and calculations that clears the items
    When creating these processes it asks to list the items, separated by comma. The only place to enter PL/SQL is under conditions, this is not conditional on anything, it should always clear the cache.
    I use this same logic on different pages in the same application - different tables but same flow. It works there. I don't see why it doesn't work here

  • AirBrowser - How to clear existing session value?

    Hi,
    We face the below mentioned problem. Would be great if someone could help us.
    Due to problems with uploading the attachment here, please send a email to the following email-id ([email protected]) and I shall send the attachment in response.
    WEBKit Browser is using existing session data. Browser retains session history and is a security concern.
    * Steps to Reproduce:
    1. Install AirBrowser.air and execute code.
    2. First go to yahoomail.com and login to an email account.
    3. In URL type Google.com
    4. After the page gets loaded, click browser "Back". Yahoo email Session will still be retained.
    * Actual Result:
    Yahoo Login Session is maintained
    * Expected Result:
    Yahoo Login Session to be cleared. Or, Warning Page should be shown.
    * Any Workarounds: None
    Thanks in advance.

    After looking at your code, the behaviour you're experiencing is expected.
    AIR uses the webkit browser and therefore when you open a web page (like in your example) you are essentially opening a page in a browser within your application.  The web server defines a unique session ID for your visit (and stores cookies etc).  When you goto Yahoo, then visit google, then go back to yahoo, the cookies or session continue to identify you and therefore yahoo automatically takes you to your mail or other yahoo specific page.
    The last I checked, AIR cookies are operating system cookies.  At present I think IE also stores it's cookies that way.  So clearing IE's cookies should affect Adobe AIR as well.  (This behaviour is not so well documented and it's one of the places I hope the docs improve upon.)
    If your application was for a public internet terminal you would want to warn people to logout of their accounts before leaving the system.   (However this kind of warning would be standard anyway I would hope.)
    I hope that helps

  • Clear a session variable

    Hi.,
    I am using jdeveloper 11.1.1.5
    Could any one pls help me how to clear a session varable when the logout link had been clicked?

    Thank you timo
    I had used this code in my logout link
                ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
                        HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
                        HttpSession session = (HttpSession)ectx.getSession(false);
                        session.invalidate();
                    response.sendRedirect("/faces/login_new.jspx"); While i m using this i m getting an error as null pointer exception

  • Kill the Session in Apex

    Hi, How to kill the session in apex 4.1.
    We are running Application Security scan. When we run the scan we are getting error as Session Identifier not updated issue is coming.
    For that resolutions are Always generate a new session to which the user will log in if successfully authenticated. Prevent user ability to manipulate session ID.
    Do not accept session IDs provided by the user's browser at login.
    Is pagesentry function any helpful to create our own session?
    Basically what i want means when we logout the session we have to destroy the session and when we login we have to create new session.
    Thanks in advance

    Hi, How to kill the session in apex 4.1.
    We are running Application Security scan. When we run the scan we are getting error as Session Identifier not updated issue is coming.
    For that resolutions are Always generate a new session to which the user will log in if successfully authenticated. Prevent user ability to manipulate session ID.
    Do not accept session IDs provided by the user's browser at login.
    Is pagesentry function any helpful to create our own session?
    Basically what i want means when we logout the session we have to destroy the session and when we login we have to create new session.
    Thanks in advance

  • How to clear the variable value in session store?

    I'll try to build form for search. There are LOV and
    search button on form. When user don't select anything then push
    search button, I'd like the report to show query everything. I
    mean the report will show like condition where id like '%'.
    And I send variable between form to report by using session
    store.
    I select nothing in LOV but value that return by LOV is
    not null. It's in stead of old value of LOV.
    Please tell me.. How to clear the variable value in
    session store? I'd like to set it to null. If you have greater
    way to do like this, please tell me.
    Thank you.

    Please suggest on this..
    Thanks.

  • How to create a session variable in Apex?

    Hello colleagues,
    Is there someone do know how to create a session variable in Apex?
    How to get them?
    Thanks
    Best Regards

    Hello,
    What do you mean by 'session variable'? You mean something that stores the value int he users session state?
    I really recommend reading the 2-Day Developer guide documentation, there is a complete section on session state -
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/concept.htm#CIHCFHBD
    Hope this helps,
    John
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd

  • Apex bug?  Items being cleared in session state - can't figure out why

    I have an item that is being submitted with a value but is then being overwritten and set to null. I can't see any reason why the submitted value is being overwritten with null.
    I have been debugging this problem for most of the day and can't figure out what is happening and was hoping someone in the forum might be able to shed some light.
    Some details:
    The item is on Page 0, has source type of "PL/SQL Expression or Function", a source expression of "V('REQUEST')", and Source Used = "Always".
    I viewed the HTML source of the rendered page and can see the following HTML, so I know the item has a value when the page is rendered:
    <input type="hidden" id="RENDER_REQUEST" name="p_t08" value="EDIT" />
    I have used Firebug to view the HTTP POST body and can see that p_t08 is being correctly submitted with a value of "EDIT" in the post body.
    When I run the page in debug mode and then view the debug log, I see that Apex is indeed setting this item to null:
         0.01500     0.01600     A C C E P T: Request="WIZ_NEXT"
         0.23400     0.00000     Session State: Save form items and p_arg_values
         0.24900     0.01600     ...Session State: Save "BRANCH_TO_PAGE_ID" - saving same value: ""
         0.24900     0.00000     ...Session State: Save "ROWS_PER_PAGE" - saving same value: ""
         0.26500     0.01500     ...Session State: Save "P0_CLEAR_WS" - saving same value: ""
         0.26500     0.00000     ...Session State: Saved Item "RENDER_REQUEST" New Value=""
    I can't figure out why the item is being set to null.
    This problem also does not occur on every page. The pages in question are a multi-step "wizard" that allows the user to navigate between steps with "Next" and "Previous" buttons. Since this is a page 0 item, it appears on every page in the wizard so I'd expect it to behave the same. When you open the wizard at step 1 and press next to go to step 2, the item (RENDER_REQUEST) is set correctly on step 2 of the wizard, BUT when you then click Next to go to step 3, RENDER_REQUEST is null on step 3. If you open the wizard at step 2 and press Next, RENDER_REQUEST is null on step 3.
    I did find a work around, but it doesn't make any sense why it would work: if I move the RENDER_REQUEST item from the "Footer Items" region to a page level item (by using Edit All and setting its region to blank), then the problem goes away. If I move it back to the "Footer Items" region the problem reoccurs.
    I am working on Application Express 4.0.2.00.07 on Oracle Database 11g Enterprise Edition Release 11.2.0.1.0.
    Any help would be greatly appreciated!
    Thank you.

    Hi Patrick,
    Thanks for the quick response. Unfortunately, I can't reproduce this on apex.oracle.com due because the app requires PL/SQL packages to be installed in several schemas, including some that require system grants (I gave a presentation at Oracle Open World a couple of years ago on some of the techniques I used in building this application that you attended; I think the session was called "Building Large Commercial Applications with Oracle Database 11g and Oracle Application Express").
    Is there another way we can work together to debug this without reproducing it apex.oracle.com? For example, if you could send me an instrumented version of the APEX_040000.F procedure (or whatever procedure is clearing the session state) that has some additional APEX_APPLICATION.DEBUG calls, I could install it on my server, reproduce the error and send you the output.
    Thank you,
    Eric

  • How to create several DB sessions, in ApEx 3.0

    Hi, I need more than one DB session in ApEx 3.0.
    When I used ApEx 2.2 I can changed using dads parameter: PlsqlMaxRequestsPerSession.
    Now it doesn't work. I set it 1000, and when I test it in 3 computers, adding data in temporary table, i can see the same information in each computer.
    Best Regards, Kostya Proskudin.

    Hi gaja,
    I got a similar situation in my application.I dont know whether the solution was suitable for u.
    what i did was
    1.created a tabular form for the (master table) so that the user can create mutiple records.
    2.Created another tabular form for the (detail table).This one is a manual tabular form.And i made the (detail tabular form as a conditional display for the selected master tabular form).
    But in my case my tables has just 5-6 columns thats why i have managed with the tabular forms.If the table has more columns u cant do this using tabular forms.
    Thanks
    phani

  • How to clear a QueryCriteriaStore ?

    Hi
    I am using a BC4J View Object through a dacf.RowsetInfo in a Java application.
    I populate a reusable FindPanel with its results.
    When the user enters the FindPanel the second time, I want to present her a clear dialogue, that is, not showing the query conditions from last invoke. I tried with FindPanel.resetFields(), obviously it should be called only after the dialog is displayed (how to call it a this point with a modal dialogue?).
    Then I tried to "clear" the RowSet with setQueryCondition(null), but a trace session showed, that there are no query conditions cached at all.
    Instead, the criterias are stored in a QueryCriteriaStore, created within the info bus as "RowSet_QueryCriteria" IB component. My question is: how to clear (or dispose) such a QueryCriteriaStore ?
    I feel that it is not good practice to mix up the use of DACs and direct use of BC4J, for the following two reasons:
    Assumptions to be made about the App Model beyond the settings in the constructor and jbinit()
    Outdated states of the DACs if underlying infos are changed
    Is this feeling right or wrong ?
    TIA
    Pascal Glauser

    Anoo,
    check the APEX_UTIL Package, there you'll find functions like clear_page_cache, clear_user_cache, clear_app_cache.
    This could be what you are looking for.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    Work: http://www.click-click.at

  • How to clear the cookie in midlet before quite the midlet?anyone?pls

    i am fresh in J2ME . Can anyone teach me on how to clear the cookie in midlet before i quit from it?
    I designed an application that require login and use session(cookie) management, i need to clear the cookie before or during i quit the midlet, so that the user will need to login again after quit from midlet. Can anyone pls assist me? i need it urgently!

    I designed an application that require login and use session(cookie) management,How did you implement the cookies. This isn't a built-in part of J2ME. You have to implement it yourself (saving the cookie and resending it in future requests), so only you can know how to delete it.
    shmoove

  • How to clear the hung calls in CUBE?

    I'm installing a new CUBE as SIP-SIP gateway in Cisco 2921, IOS: 15.1(4)M3. When i tried few test calls, I saw couple of hung calls in it.
    I tried clearing them manually with the below command but it didn't help.
    clear call voice causecode identifier{id identifier | media-inactive | calling-number number | called-number number}
    >> https://supportforums.cisco.com/docs/DOC-34379
    The call legs are still in connecting status.
    2    : 2152 13:36:28.319 CET Tue Feb 11 2014.1 +-1 pid:200 Answer 222022029 connecting
    dur 00:00:00 tx:0/0 rx:0/0
    IP X.X.X.97:24578 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g711ulaw TextRelay: off
    media inactive detected:n media contrl rcvd:n/a timestamp:n/a
    long duration call detected:n long duration call duration:n/a timestamp:n/a
    2    : 2157 13:38:54.589 CET Tue Feb 11 2014.1 +-1 pid:200 Answer 222022029 connecting
    dur 00:00:00 tx:0/0 rx:0/0
    IP X.X.X.97:24582 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g711ulaw TextRelay: off
    media inactive detected:n media contrl rcvd:n/a timestamp:n/a
    long duration call detected:n long duration call duration:n/a timestamp:n/a
    Also, I tried enabling media inactivity timer but it would clear only the calls in 'Connected' status If I understand correctly.
    how to clear those hung calls? and what could be the cause of it?
    Any help would be much appreciated.
    Thanks in advance
    Suresh

    Suresh have you tried this:
    ip rtcp report interval 5000
    gateway
    timer media-inactive 5
    The challenge you may face is that the media inactivity was not configured before this call started, hence it cant activate the time for this particular call...
    Give it a go, lets know if it works. Even if it doesnt I suggest you enable this on your CUBE going forward, so you dont haver hung calls in the future
    example: You can use the debug ccsip events to see the media inactivity timer kicking in for a call...
    Router# debug ccsip events
    00:04:29: sipSPICreateAndStartRtpTimer: Valid RTP/RTCP session found and CLI ena
    bled to create and start the inactivity timer
    00:04:29: sipSPICreateAndStartRtpTimer:Media Inactivity timer created for call.
    Mfactor(from CLI): 5 RTCP bandwidth: 500
    RTCP Interval(in ms): 5000
    Normalized RTCP interval (in ms):25000
    Please rate all useful posts
    "The essence of christianity is not the enthronement but the obliteration of self --William Barclay"

  • How to clear the last_line_iterator for custom search result?

    Hi Friends,
    I have one issue regarding search result of service request please help me on this issue....
    We have added some custom fields using value nodes and EEWB image field in search result of service requests....and the problem is when we click on export excel sheet button in result list for first time it is working fine data is showing in excel sheet, but after that when we done some changes in search screen and press search button for second time and press the export excel sheet...data not bound in excel sheet....
    After analysis by me....after pressing the button and modify in search screen export excel sheet for second time in ME-> Last_line_iterator is not clearing it is containing previous search value for last_line_iterator....  so it is failing to call GET_ITERATOR( ) ....so anyone suggest who face same problem in their experience ....how to clear the Last_line_iterator ...let me know if any information required .....pls it is very urgent .....
    thanks in advance....
    regards,
    kumar

    Hi Lakshman,
    Everytime user clicks on a new shop, create a session variable and set it to any value.
    userSessionData.setAttribute("NEWSHOP","true");
    Now go to history.jsp and just above this piece of code put a validation for the value of this session variable and
    if its value matches to "true" than only let the below code to execute.After the validation dont forget to remove this
    variable from session.
    <isa:iterate id="historyItem" name="<%= UpdateHistoryAction.HISTORY_LIST %>"
                 type="com.sap.isa.isacore.HistoryItem"> 
    Likewise you can work with organizer frame refresh also.Hope this helps you.
    Regards,
    Arshi

Maybe you are looking for

  • Calling XML file from Flash -- Usage of wildcard characters

    Hi We have a Flash file, tabs.swf, (standard tab interactivity) from which we are calling the XML file using the following code: myXML.load("tabs.xml") We are using this SWF file in many learning modules created using Captivate, FrameMaker, RoboHelp,

  • How can using 'jMaki' in weblogic server 10?

    i tried 'jmaki' in wls10. but fail jmaki added follow WEB-INF/lib/ajax-wrapper-comp-1.8.0.jar org.json-0.0.2.jar jsfcompounds-core-0.0.6.jar when i deployed, rising the exception... <2008. 10. 30 오전 2시 14분 59초 GMT> <Error> <Deployer> <BEA-149265> <Fa

  • Bandwidth Question

    I wanted to ask a question which has been playing on my mind for a while now. Thought this is the best place to ask. I am currently on ADSL+2 and i get around 17mbps-19mbps live 650meters from the exchange line lenth 19db. Now my exchange is going to

  • Secure Guest Access with AP541's

    My customer would like to have a secure guest wireless environment using AP541N's. When a guest laptop connects to the wireless I need the user to be redirected to a guest secure zone where they can only access the Internet after entering a password.

  • The Internet of things and computing

    Smart devices, connected homes, embedded connected sensors, mobile devices and computers are all coming together in the Internet of Things (IoT). This massive network is constantly connected, constantly exchanging information and if it isn't already,