How to "Purge" Session 0
Hi,
We have some pages which use Session 0. I also have some application items which have corresponding application computations that get set "On New Instance". The computations are pulling values from a table.
When we first access a page with session 0 the application items are set by the computation and then they maintain that state. We run into an issue when I change the values in the back end and want them propagated to the application items. For clients who have "normal" sessions they can wait until their next login, however session 0 maintains the "old" values. Is their a way to purge or clear session 0 so all the session variables are reset etc?
Here's an example:
App Item: F_EMP_COUNT
App Comp: SQL - On New Instance
select count(*)
from emp
Application Access:
Px w. Session 0 is accessed for the first time:
- F_EMP_COUNT is set with 10 (the number of employees)
time passes
I now insert a new record in emp and realize that I need to update values in session 0's state
At this point I'd like to purge session 0 so that the next time it is accessed it's values are reset.
Thank you,
Martin
[http://apex-smb.blogspot.com/]
Martin,
There is no "session 0". To clear whatever session you're in you can always request a URL with 'SESSION' in the clear-cache position in the URL. But that won't make your on-new instance computations fire again so the best thing to do would be to request a URL with no session ID. Then right after you get the new session, on the page requested, redirect to a URL with zero in the session ID position.
Scott
Similar Messages
-
How to pass session variable value with GO URL to override session value
Hi Gurus,
We have below requirement.Please help us at the earliest.
How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
Please provide step by step solution.No vague answers.
I followed below steps mentioned.
RPD:
****-> Created a session variable called STATUS
-> Create Session Init block called Init_Status with SQL
select 'ACTIVE' from dual;
-> Assigned the session variable STATUS to Init block Init_Status
authenticationschemas.xml:
Added
<RequestVariable source="url" type="informational"
nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
Report
Edit column "Contract Status" and added session variable as
VALUEOF(NQ_SESSION.STATUS)
URL:
http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
Issue:
When I run the URL above with parameter EXPIRED, the report still shows for ACTIVE only. The URL is not making any difference with report.
Report is picking the default value from RPD session variable init query.
could you please let me know if I am missing something.Hi,
Check those links might help you.
Integrating Oracle OBIEE Content using GO URL
How to set session variables using url variables | OBIEE Blog
OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
Thanks,
Satya -
How to purge the workflow which is in process
Hi Friends,
I am facing one problem in the AME Workflow.
when a user submit a page for approval process, workflow engine invokes . and in the hr_api_transcations table transacation id is created for that workflow transacation. now the problem is, if i purge that workflow process using concurrent program 'PURGE OBSELETE WORKFLOW RUNTIME DATA' . it is deleting the workflow. but when i see the hr_api_transacation table still the transacation id for that workflow is active.
Example :-
when i see through through the responsibility (workflow administrator web applications)=>Administrator workflow=>Status monitor
when i type the item key say some x and search for the workflow status i cant see the workflow status. i can see it is deleted.
but when i type the same item key in the hr_api_transacation
like :- select * from hr_api_transactions where item_key='X' i can see the status of this transacation is active and workflow is in pending.
can anyone explain me why system is behaving like.. how to stop the workflow process and how to delete the transacation id from the table.
Thanks in advancePlease check below nots
453137.1 (Oracle Workflow Best Practices Release 12 and Release 11i) sections titled "Choosing Not to Use E-mail Notifications" and "Cleaning Up the WF_NOTIFICATION_OUT Queue"
How to purge e-mail notifications from the workflow queue so the e-mail is not sent [ID 372933.1]
264191.1 describes how to Purging Oracle Workflow tables of obsolete workflow runtime information for completed workflow processes is a required regular maintenance tas
Notification Mailers Unavailable
How to delete undelivered notifications from WF mailer -
How to use session in webservice?
In C#, can use session variable in a webservice object.
How to use session in Java webservice?
Who can give me a example?
Thanks a lotDid I use session in a wrong way?No, you are using the session correctly. The code looks fine.
Check
- your spelling of the attribute names - obviously they must match
- the ids of the sessions you get both times: session.getId(). If they have different ids, then most probably the session is being lost somewhere.
There are a number of reasons to lose a session. If you close the browser, invalidate the session in code, or lose the cookie recording the id. This happens when you change from https to http, so a session can be lost that way.
The session is normally maintained by session cookies. If you close your browser you lose the cookie. If you have disabled cookies on your machine then it also might not work.
In cases such as that you should be using the method response.encodeURL() to maintain the session for you in any hyperlinks you produce. Struts normally handles that for you though if necessary.
Hope this helps,
evnafets -
How to use session object in jsp
hi all
marry christmas
can anyone plz tell me how to use session obect in jsp
rachna
Message was edited by:
rachna_arora82hi rachna,
JSP has a default(implicit) session object...... use the getSession(true) method on the session object and then going u can either get or set attributes depending on the requirement
That was in general and now with the issue u have got..... what u can do is that the u can create session for every user who logs in and when he/she tries to login again then u can probably check for the existing session object in the JSP and perform the logic as required..... any clarifications plzzzzzzz let me know
Thanks n Regards
Naveen M
Message was edited by:
Novice_inJAVA
Message was edited by:
Novice_inJAVA -
How to implement session varibles and how to use it
how to implement session varibles and how to use it.ple help me
Please see the below blog, Hope it helps!!!
http://obieetraining11.blogspot.com/2012/06/create-initialization-block-for-session.html -
Counting how many active sessions in a webapp
Hi folks,
I was wondering if it is possible to count how many active sessions that there currently are in a webapp? I've looked at the ServletContext and ServletConfig classes, but I can't find anything. Any ideas?
Cheers,
Raj.HttpSessionListener was introduced in servlet spec 2.3 which is supported in Tomcat 4.0 but not 3.3.
If upgrading to 4.0 is not an option, there is no elegant way to get what you need. There is no API call that returns all the active sessions so you must do it yourself. One way is to create a class that implements HttpSessionBindingListener to track your sessions. Instantiate it on start-up and add its reference as a session attribute when the session is first created. You can then update your custom session info in the valueBound and valueUnbound methods. -
How to reference session state in a list entry label
You can use &<item>. to reference session state values which can then be used in titles and item labels but it seems it does not work in the label for a list entry (i.e. to build a menu). Is there a workaround?
thanks in advance
PaulPOK I just realized that referencing session state doesn't work for lists used by Enkitec's NavBar plugin solution. It does reference the &<ITEM>. correctly for normal APEX lists. Anyone know how to reference session state when using Enkitec's NavBar plugin solution?
PaulP -
Using UMS on a Glassfish cluster - how to support session replication ?
Hello,
I have deployed the imqums.war in a Glassfish cluster but can not use the session replication.
The UMS uses sid as client session identifier. If the client session is is created on node 1, when the call hits the node 2 it gets:
com.sun.messaging.ums.service.UMSServiceException: javax.jms.JMSException: sid is not authenticated. Use login to get a new sid, expired/invalid sid=4-LTE2NTA5ODMzMTU=
at com.sun.messaging.ums.service.ClientPool.getClient(ClientPool.java:157)
at com.sun.messaging.ums.service.SendServiceImpl.commit(SendServiceImpl.java:244)
at com.sun.messaging.ums.service.UMSServiceImpl.commit(UMSServiceImpl.java:234)
at com.sun.messaging.ums.core.UMSServlet.doSimpleMessaging(UMSServlet.java:786)
at com.sun.messaging.ums.core.UMSServlet.doPost(UMSServlet.java:633)
Can you provide advise how to obtain session replication for UMS calls ?
Thank you,
CristinaThere is an example here,
http://wiki.eclipse.org/EclipseLink/Examples/JPA/CacheCoordination
It was run on WebLogic but should be runnable on Glassfish without too much effort. (if you port it, please submit your changes to the wiki or bugzilla). -
How to call session directly in bdc without using SM35
how to call session directly in bdc without using SM35
HI
good
you r using the sm35 to see the session for calling teh session in your report
ATA: messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE ,
c_session LIKE apqi-groupid VALUE 'Z3PL_CUST' ,
c_job LIKE tbtcjob-jobname VALUE 'Z3PL_JOB_CUST' ,
c_flag TYPE c VALUE 'X' ,
g_qid TYPE apqi-qid .
thanks
mrutyun -
How to create session in JSP & Servlet
Hi All
I'm really new to JSP & Servlet. So I want to know how to create sessions and how to pass details to another web page
Thanks
PadmaYou can easily pass objects from one jsp or servlet to another.
On your servlet execute method (for example), you can do this as follows:
HttpSession session = request.getSession();
User u = new User();
session.setAttribute("user", u);And get it again on other servlets:
HttpSession session = request.getSession();
User user = (User) session.getAttribute("user");I hope this helps you. -
How to create session id from different string controls
how to create session id from different string controls
fais,
Please create the VI you are talking about and save some default data into all of the controls. Also on the front panel, place the session ID that should be generated by that data. Now, post your VI to a response so I can download it. I can then take this VI and help you create the functionality. (Please post what version of LabVIEW you are using.)
My guess it that you are going to need to use a good number of string concatenations as well as a few string indexes to get parts of strings out. As for the date, you can use a Property node with the Numeric Text.Text property to get the actual string displayed on the front panel for the date and parse out the parts that you want.
Randy Hoskin
Applications Engineer
National Instruments
h
ttp://www.ni.com/ask -
How can a session have an ACTIVE status with a WAITING state
Hi all,
I would like to know the difference between status and state of a session ?
The documentation says :
for status ACTIVE : Session currently executing SQL
for state WAITING : The session is currently waiting...
How can a session execute a SQL statement and be waiting at the same time ?
Regards,
fcjunic.Hi fcjunic,
It's really not paradoxical, once you understand the definition of the terms.
First, we have V$SESSION.STATUS, which can be ACTIVE or INACTIVE. A session is ACTIVE if it's in a database call. So, think of this from the client side point of view. A session does a parse call, or an execute call, or a fetch call, etc. For the duration of that call, till control returns back to the client, that session is said to be ACTIVE.
From the time the calls returns, till the time of the next call, the session is INACTIVE.
Next, we have V$SESSION.STATE. This is probably more useful to think of from the server process point of view. This refers to whether the server process is currently running, i.e. on the CPU, or WAITING, i.e., waiting on a resource. Possible values for this column are WAITING, WAITED KNOWN TIME, WAITED SHORT TIME, and WAITED UNKNOWN TIME. Of those possibilities, a session is only actually waiting if STATE is WAITING. All the other values mean that it's no longer waiting, but is running on CPU.
A session w/ STATUS of INACTIVE, will always be in STATE of WAITING, waiting on the 'SQL*NET message from client' wait. So, in that case, it means the server process is waiting around for work to do. It's in between calls, so, STATUS is INACTIVE, and it's waiting on that network port, to receive the next call from the client.
An example of a session that's ACTIVE and has STATE of WAITING, would be a session that's, for example, doing a full table scan. So, it's got lots of data to read from disk. While the session waits for the read from disk to complete, the session waits on 'db file scattered read'.
Finally, for completeness, the difference between the different possible values of the STATE column. I already covered WAITING. If a session is not waiting, it's now on CPU, and it previously waited. If so, it either waited more than 10 ms, in which case it will report WAITED KNOWN TIME, or less than 10 ms, in which case it reports WAITED SHORT TIME, or timed_statistics is false, in which case this column will always be WAITED UNKNOWN TIME. Also, it's important to pay attention to this column, when trying to interpret the WAIT_TIME and SECONDS_IN_WAIT columns.
See here:
http://download.oracle.com/docs/cd/E11882_01/server.112/e10820/dynviews_3016.htm#REFRN30223
for more information.
Hope that helps,
-Mark -
How to trace session(3rd paty application) accessing oracle
Solaris 9
oracle 9i and 10g
I would like to know how to trace session which is 3rd party application currently running .
I need to collect statisctics for currently running session.
Thanks.
Message was edited by:
user539835See this thread:
Re: SQL_TRACE help to newbie in oracle
Search the forum and you will also see how to manually decode most of the trace file.
Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc. -
How set a SESSION variable?
How set a SESSION variable?
There is a standard object where could do this?
Thx in advance Roberto.>I'm not at all sure that you CAN change the portal language in the way that you want.
>Perhaps you should repost this question in the portal forum.
No i manage the language of WebDynpro myself, with tables from R3.
I wanna do only a thing like HTTP SESSION variable from the WEB.
I could do it, using java function of servlet, but i don't wanna use third packege out of WebDynpro FRAMEWORK.
The isn't an OBJECT CLASS STANDARD od WebDynpro that do that?
I wanna PERMANENT variable from a WebDynpro to another.
It is an implicit variable passage.
No one did something of similar?
Bye
Message was edited by: giovanni angerame
Maybe you are looking for
-
Hi SDN, Our customer pointed out that on a certain metric, the key figure needs to a additive series, rather than an individual value. So except for the 1st fiscal quarter every other qtr is sum of itself and the previous qtr - within a single year.
-
Expanding email signature options in iphoto 08
When I email one photo from an open event in iphoto, I am provided with signature options. One option is one of my 4 email account addresses, and the other option is "no signature". I would like to have all my email account addresses appear as signat
-
XtremeGamer driver not working with Windows 7
I recently upgraded to Windows 7 and I can't get my XtremeGamer sound card to work. I've installed the latest drivers listed on your site and I still don't get any sound. Any thoughts as to what might be causing this problem? I've used the update man
-
Hi Experts, Need your advice on the below. We are using same bank account number for wire payments and ACH payments and Bank account balance displays payment for both payments but i would like to see balance with respect to payment method. let me kno
-
I have a Galagy Tab 3 Tablet NOT a phone. I downloaded the APK filefor android and installed it. When I open it it says I need an add on. When I go to Fire Fx add ons it is not that for me to eable it fr all sites like instructions are telling me to.