OCI bowser generates new session with each page load
Here is a summary of my problem:
I am trying to implement the SAP Open Catalog Interface (OCI) with our eCommerce software, but I am having issues with the Web browser that OCI uses.
Our eCommerce software utilizes the browser session id to identify the user. Our issues is that the OCI browser supplies a new session id with each page load.
The weird part is that if I open a standard instance of IE, access the site, and then access the site though OCI the same session is shared by both the OCI browser and the IE browser. The OCI browser is now able to maintain the session ID as the user browses the site.
Thanks.
Thank you for your quick response.
I understand that session IDs are always unique, and should only last for as long as the instance of the browser is open.
What I have seen happen is that the session ID will get recreated with each page load with in a single instance of the OCI browser.
When the site is opened in OCI it logs the user in, and then redirects them to the homepage. The problem is that the load of the login page, and the load of the homepage have different session IDs. If the user then clicks on a link on the homepage that page load will again have a different page load. This causes the eCommerce system to see them as separate users.
As I described when I open an instance of IE first it seems to work. This leads me to believe that the OCI browser can read the cookie information, but can't write or create.
I am trying to figure out why the OCI browser keeps generating new Session IDs.
Similar Messages
-
ADF ProcessScope -- I get a new AdfFacesContext on each page load
I am trying to store some variables in the ADF processScope. But the next time the page is loaded and calls the managed bean methods, the AdfFacesContext is different, and so the processScope is empty. The managed bean is session scope, and I am setting the processScope variables in the bean's Java code.
In particular this happens when I click on the af:table pagination links, e.g. the "next 25".
How can I get access to the same AdfFacesContext (and therefore the same processScope) the next time the page loads and calls the managed bean?
I am using JDeveloper 10.1.3.3.0.
Here is the example code, and the output that is produced from my System.out.println statements:
========== Controller.java (session scope managed bean) ===============
package adfproject;
import java.util.Map;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import oracle.adf.view.faces.context.AdfFacesContext;
public class Controller {
private List<Map> list = new ArrayList<Map>();
private String label;
private static int counter;
public Controller() {
// initialize list with Map objects
for ( int i = 1; i<10 ; i++) {
Map map = new HashMap();
map.put("A","first column");
map.put("B", "row " + i);
list.add(map);
// called from JSP to initialize the ECO bean
public String getLoad() {
printAdfProcessContext("in getLoad");
// get value from current process scope
String currentLabel = (String)getProcessAttribute("LABEL");
// print currentLabel
System.out.println("current LABEL = "+currentLabel);
// if currentLabel null, build new one with counter, incr counter
if (currentLabel == null) {
label = "xyz " + ++counter;
System.out.println("new LABEL: "+label);
// remember the current label in the process scope, and in member
setProcessAttribute("LABEL",label);
return ""; // empty string so nothing is displayed on web page
public static void printAdfProcessContext(String label) {
AdfFacesContext afCtx = AdfFacesContext.getCurrentInstance();
System.out.println("============ "+label+" ===========");
System.out.println("AdfFacesContext = "+afCtx);
Map ps = afCtx.getProcessScope();
System.out.println("Process scope = "+ps);
* Get attribute from ADF "processScope".
* This is a special scope provided by ADF which is in between Session
* and Request.
* @param name attribute name
* @return
public static Object getProcessAttribute(String name) {
AdfFacesContext afCtx = AdfFacesContext.getCurrentInstance();
return afCtx.getProcessScope().get(name);
* Add or overwrite attribute in ADF "processScope".
* This is a special JSF "scope" provided by ADF Faces which is somewhere
* between Session scope and Request scope. It can be accessed in JSF
* pages using the EL expression #{processScope.myAttribute}.
* @param name attribute name
* @param value attribute value
* @return
public static void setProcessAttribute(String name, Object value) {
AdfFacesContext afCtx = AdfFacesContext.getCurrentInstance();
afCtx.getProcessScope().put(name,value);
public String getLabel() {
return label;
public List<Map> getList() {
return list;
============= jsftest.jsp =====================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<f:view>
<afh:html>
<afh:head title="ADF Context Test">
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
</afh:head>
<afh:body>
<h:form>
<af:outputText value="#{controller.load}"/>
<h:panelGrid columns="2">
<af:outputLabel value="LABEL"/>
<af:outputText value="#{controller.label}"/>
<af:outputLabel value="Map"/>
<af:table emptyText="No items were found" value="#{controller.list}"
var="row" rows="4">
<af:column sortable="false" headerText="A" formatType="text">
<af:outputText value="#{row.A}"/>
</af:column>
<af:column sortable="false" headerText="B" formatType="text">
<af:outputText value="#{row.B}"/>
</af:column>
</af:table>
</h:panelGrid>
</h:form>
</afh:body>
</afh:html>
</f:view>
================= Console Output when page loads initially ==================
08/09/03 15:27:18 ============ in getLoad ===========
08/09/03 15:27:18 AdfFacesContext = oracle.adfinternal.view.faces.context.AdfFacesContextImpl@101751
08/09/03 15:27:18 Process scope = ProcessScopeMap@7009019[_map={}, token=null,children=null]
08/09/03 15:27:18 current LABEL = null
08/09/03 15:27:18 new LABEL: xyz 1
======= Console Output when I click the "next 4" link on the table, and the page reloads ========
08/09/03 15:32:42 ============ in getLoad ===========
08/09/03 15:32:42 AdfFacesContext = oracle.adfinternal.view.faces.context.AdfFacesContextImpl@16bf9ce
08/09/03 15:32:42 Process scope = ProcessScopeMap@31287037[_map={}, token=null,children=null]
08/09/03 15:32:42 current LABEL = null
08/09/03 15:32:42 new LABEL: xyz 2
====== Comments =========
As you can see above, the AdfFacesContextImpl object has changed, so I have lost the ProcessScopeMap.
Also, on the displayed page, the label is still "xyz 1" instead of changing to "xyz 2".
Thanks for your help,
JbLThanks for the idea, Murph.
I didn't need a session scope bean, request would be fine, I just was trying to make something work that would allow me access to the process scope attributes. I want to allow multiple browser windows searching on different objects independently, so I don't want to use session scope.
I tried removing the variable declaration and setting/getting the processScope attribute in the setter/getter methods, to make the process scope attributes independent of the managed bean. But each time the page loads (by clicking the table navigation links), I still lose the process scope attributes. I tried with both session and request scope beans. Either way, in the getLoad() method, when I try to get the label from the process scope (using the new version of getLabel()), it is null.
So the root problem is still there.
For continued discussion on this more specific problem, see my separate thread "JSF ProcessScope attribute missing on page reload from af:table pagination"
at JSF ProcessScope attribute missing on page reload from af:table pagination -
Create new session for each window opening
From a jsp page i open a page called student.jsp by clicking on students admision no.Therefore lots of pages can be opend in new windows with relevent student details.
but when i click on the link i called a servlet, get relevent details and redirect to student.jsp. The problem is ,all opened windows have same session id and there are session conflicts.
How can i create new sessions for each page thru the servlet or is there any other alternativesI actually was working on a problem that was similar to this, and the problem is with how each web-browser works with sessions...
Each browser window (Except in one case with IE) will use the same session in each window.
However, you might be able to use URL-Rewritting to manage your sessions and get around using cookies for for session tracking. I personally haven't tried this, but I'm betting that it will work.
Best of Luck,
Nate -
Call transaction in new session with the value at hotspot
Hi all,
As a hotspot functionality I would like to open a new transaction in a new session with the value at hotspot. For that reason, I am using the FM ABAP4_CALL_TRANSACTION with the option STARTING NEW TASK.
This FM is not working because Parameter ID is not Maintained for the field (Hotspoted). So no value is passing to new transaction.
Please suggest any other way to implement this.
ThanksHi Anil..
This is the Solution for ur Requirement. try this program and change as per ur need.
REPORT ZSEL_CALL_TCODE.
data : IT_KNA1 TYPE TABLE OF KNA1 WITH HEADER LINE.
DATA : IT_SPA TYPE TABLE OF RFC_SPAGPA WITH HEADER LINE.
SELECT * FROM KNA1 INTO TABLE IT_KNA1 .
LOOP AT IT_KNA1 .
WRITE:/ IT_KNA1-KUNNR HOTSPOT ON.
HIDE IT_KNA1-KUNNR .
ENDLOOP.
CLEAR IT_KNA1-KUNNR.
AT LINE-SELECTION.
CASE SY-LSIND.
WHEN 1.
IF IT_KNA1-KUNNR IS NOT INITIAL.
REFRESH IT_SPA.
IT_SPA-PARID = 'KUN'.
IT_SPA-PARVAL = IT_KNA1-KUNNR.
APPEND IT_SPA.
CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'S1'
EXPORTING
TCODE = 'XD02'
SKIP_SCREEN = ' '
MODE_VAL = 'A'
UPDATE_VAL = 'A'
IMPORTING
SUBRC =
TABLES
USING_TAB =
SPAGPA_TAB = IT_SPA
MESS_TAB =
EXCEPTIONS
CALL_TRANSACTION_DENIED = 1
TCODE_INVALID = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
ENDCASE.
<b>Reward if Helpful.</b> -
Hello,having a problem with Logic 9 on a Mac Pro.Working on a lenghty song and apparently session got corrupted.Doesnt let me export tracks,program crashes.Already tried start brand new session with the tracks imported into it but still wont export.Suggestions?
Thanks, Ian. Yeah, that's how I do it now...or with the controls in the left side pane. Still, I would have liked that quick on-the-spot edit capability...especially while sketching.
Ian Turner wrote:
Sorry Mark, you are out of luck as it does not do that - it works the same as L8. The way I would achieve that with more accuracy and control would be to route all the tracks you want to fade to a Bus then use volume automation on the bus. To do this you will need to add a standard audio track, then re-assign it using (Control Click on the track header) to the Bus track. You can then automate volume/plugins etc on the Bus track.
Ian -
A New Thread With Each Mouse Click
Dear Java Programmers,
The following code gives a bouncing ball inside of a panel. With each click, I need to have a different ball added and the previous ball to keep on bouncing. This part is a larger question of multitreading. When I have an action listener for mouse clicks, and I need to have a new thread with each click, how do I do this and where do I put it?
Thank you in advance.
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Graphics;
import java.awt.*;
import java.awt.Color;
import java.awt.event.MouseListener;
import java.awt.event.MouseEvent;
public class Multiball extends JPanel implements Runnable, MouseListener {
Thread blueBall;
boolean xUp, yUp;
int x= -10, y= -10, xDx, yDy;
public Multiball()
xUp = false;
yUp = false;
xDx = 1;
yDy = 1;
addMouseListener( this );
public void mousePressed( MouseEvent e )
x = e.getX();
y = e.getY();
blueBall = new Thread( this );
blueBall.start();
public void paint( Graphics g )
super.paint( g );
g.setColor( Color.blue );
g.fillOval( x, y, 10, 10 );
public void run()
while ( true ) {
try {
blueBall.sleep( 10 );
catch ( Exception e ) {
System.err.println( "Exception: " + e.toString() );
if ( xUp == true )
x += xDx;
else
x -= xDx;
if ( yUp == true )
y += yDy;
else
y -= yDy;
if ( y <= 0 ) {
yUp = true;
yDy = ( int ) ( Math.random() * 1 + 2 );
else if ( y >= 183 ) {
yDy = ( int ) ( Math.random() * 1 + 2 );
yUp = false;
if ( x <= 0 ) {
xUp = true;
xDx = ( int ) ( Math.random() * 1 + 2 );
else if ( x >= 220 ) {
xUp = false;
xDx = ( int ) ( Math.random() * 1 + 2 );
repaint();
public void mouseExited( MouseEvent e ) {}
public void mouseClicked( MouseEvent e ) {}
public void mouseReleased( MouseEvent e ) {}
public void mouseEntered( MouseEvent e ) {}
public static void main(String args[])
JFrame a = new JFrame("Ball Bounce");
a.add(new Multiball(), BorderLayout.CENTER);
a.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
a.setSize(240,230);
a.setVisible(true);
}Thank you very much for your replies. As for the multithreading, I have created 20 threads in the main method. With each click, one of these 20 threads starts in order. Now, how do I get a ball to paint with each one? How do I reference them in the paintComponent method?
public void mousePressed( MouseEvent e )
x = e.getX();
y = e.getY();
blueBall = new Thread( this );
blueBall.start();
count ++;
System.out.print ("count is " + count);
MyThread[] threads = new MyThread[20];
for ( int ball = 0;ball < count; ball ++){
threads[ball] = new MyThread ("" + ball);
threads[ball].start ();
} -
I have a brand new macbook with microsoft office loaded. I set outlook as the default mail. i would rather go back to mac mail but can't figure out how to do it. any ideas?
Thanks for any help
LouI have a similar problem: I switched from mac mail to Outlook 2011 as the default client, and want to switch back. Mailto links (eg from browser etc) default to Mail. However, when I try to email a Word document as an attachment, it continues to open Outlook. Outlook has a button in its prefs for making it the default client, but I don't see a way to turn this pref off in either Outlook or in Word.
-
My Firefox was working fine, and now I just changed the settings (History) to delete all the data once, I closed the browser as default and installed LinkExtend, WOT and SecretAgent plugins, and Firefox is showing me an error message. I have reset the settings back and disabled the extensions, but still its showing an alert message for each page load(atleast once it'll show for each page load, sometimes it may exceed to 2 (or) 3. Here, I've given the link for my problem : https://dl.dropboxusercontent.com/u/76460759/Firefox_Error.png . Any here suggest me how to solve this issue.
Please update to Firefox 21 [[Update Firefox to the latest version]]
-
Hi,
A client confronted me with the next question:
I have a map with 500 pdf's in it.
Is it possible to make a new file with only the first page of each pdf?
After that to make a new file with only the second page of each pdf?
And after that the third?
Etc.
Is that possible with an action?
Or are there scripts for?
I couldn't find them.
I use an iMac with Acrobat XI.
Any help is very welcome.
Thanks in advance.
BornholmYou can extract each page from each pdf as a seperate page. Once this is done you can select the pages tocombine.
You would have to write custom a custom JavaScript and programatically code the names to combine if the extracted file pages habvestandars naming that could be programed. There maybe some security coding you will have to do because of Adobe restrictions but this all documented in the Acrobat JavaScript Reference. -
Setting up new book with single pages but facing preview and breaking up pages at print time
I have a new book to design. Last time on a similar project (with 100 pages) I had a massive cry at print time as the printer wanted single pages with bleeds. I had set up the book with facing pages. When I unchecked to non facing pages I lost all my formatting and margins... I spent hours fixing this up.... I do need to show double spreads to the client as we go along and I do want to work in a mode that shows both left and right next to each other (ie in a book format). What do you suggest? I have been looking at setting up as single pages side by side and then at print time I think I can move all my right hand pages over with the break up page function and then fix up all my bleeds manually.? thanks in advance
lisalip schrieb:
no my printer needs 5mm bleed all around for the books I am doing and wants single pages with crops and bleeds
I will check the link and hope ok
I do prefer to design with facing pages but as I said it was a nightmare for me last time when setting for print
You confuse single pages with non facing document.
Every page has to be its own page. When your document has facing pages you have to set up a document with facing pages. There is no way around. Otherwise you will have problems with the left and the right page number and a lot of other issues.
If the printer needs single pages you have to export your document as PDF with single pages. That means deactivate the spread option in the PDF export dialog.
Here I have an example:
Situation:
In the 2 spreads on the top you don't have a problem when you export to a single page PDF. The bleed is taking material from the opposite page. It is ok and not disturbing.
But the bottom spread is different. Here you see a design break. It would be disturbing, if you take material from the opposite page. In many cases you would not realize it, but there are several situation where it might be a problem like glue or o-wire bindings where the bleed might become visible.
So you have to go to the page panel.
You have to select the spread first, then you go to the fly-out menu and select don't "allow selected spread to shuffle" pages. The numbers of the spread will appear in rectangle brackets.
Now you can drag the right (or left) page away from their counterpart on the spread. First you have to deselect any pages from that spread, so you can click on any thumbnail of any other page of any other spread. Then click on the right page of that spread. Only this pages has to be selected.
You see the icon of your curser changes as it is in the image above. Drag it as far as you see a thick vertical line. Then release sthe curser.
As result you have now seperate pages. You need only to extend the image, here on page 6. I have taken an image which is large enough, so I need only to move the image frame edge to the bleed.
When I export a single page PDF, as your printer wants I don't get problematic bleed from the opposite page.
You can download this example as IDML file. https://www.dropbox.com/s/qnotrl1ihe7umh7/SinglePages-Spread%20Ordner.zip -
Stopping a header reloading with each page
I've had loads of conflicting advice on this one. Someone
must know surely. How do I stop a flash movie from reloading each
time a link button is clicked. In other words I just want the movie
to load once on the home page and the integrated buttons to work as
links to other html pages without the movie reloading on each
page.well, lets start with the top one, since its an interesting
way to do things anyway.
when you look at your html file, (or asp or php) you'll be
able to see the .swf file embedded in there. If you attach
variables to the back of that using a script...
"yourflashfile.swf?VARIABLEA=yesssss"
that will pass a variable to your _root timeline called
VARIABLEA with the value of "yesssss". You can use that directly in
your html, but if you want the variable to change, you'll have to
use a script. I like to use php because its free and open source,
and very easy to find online help.
http://www.13studios.com/whatever.php?VARIABLEA=no
------ doesn't work, dont click.
Would pass your php file VARIABLEA with a value of no. So you
see we can now connect the two by using a php echo command...
<?php echo "$VARIABLEA" ?> or <?=$foo?>
can you put that jumbled mess of answer together
successfully? :D Lemme know! -
when i click on a new tab it want it to go to my home page not "new tab". Under tabs in options there is no option to set a new tab to open my home page.
Open a new tab with the home page that you have set in Options > General:
*CTRL+left-click the "Home" icon
An Add-on that will open your selected page (set in the Add-ons options, see below) when clicking the New Tab ("+") icon:
*'''''New TabURL''''': http://sogame.awardspace.com/newtaburl/
*after installing, set the options for '''''New TabURL''''': Add-ons > Extensions, click the Add-on name, click Options
'''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
Not related to your question, but...
You may need to update some plug-ins. Check your plug-ins and update as necessary:
*Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
*Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
*Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
*Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
*Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox] -
Create New Session with SAPShortcut Logon
Hello
Following Problem:
We start a SAPLogon for Windows with Shortcut File from our Portal. There we want to create a new Session , we get a blank SapGui screen without favorites an menu????
Portal Version EP7 SP10I found the solution in the following Thread . Answer posted from Sunil Nair
SAPGUI iview from SAP Portal => create new session results in empty screen
Posted: Apr 25, 2007 6:00 PM in response to: HANNES TOEFFERL E-mail this message Reply
Hi,
Go to the file .../irj/root/WEB-INF/portal/portalapps/com.sap.portal.appintegrator.sap/property/Transaction/WinGuiRenderLayer.properties
In this file, change -wp=true to -wp=false and also Workplace=true to Workplace=false.
Restart the portal for the change to take effect.
Hope this helps.
Cheers,
Sunil
PS: Reward points for helpful answers.
.... This works great!!!! -
Auto-generate new form as additional page
I have a form I created in Adobe Acrobat. Is there a way that Acrobat can be set to auto-generate that form on additional pages as the need arises or is the only way to do this is create the additional pages initially?
Yes, a form created in Acrobat can do this by spawning a hidden template page using JavaScript. If it has to work with Reader, however, you users will have to use Reader 11. It can work with older versions of Reader, but only if the document has been Reader-enabled with LiveCycle Reader Extensions, as opposed to just Acrobat.
-
Open new tab with home page displaying
i want to know if when you open a new tab your home page can automatically appear instead of a empty page. How can you do this? thank you
You can do that by using an add-on such as:
* NewTabURL - https://addons.mozilla.org/firefox/addon/newtaburl
* New Tab Homepage - https://addons.mozilla.org/firefox/addon/new-tab-homepage
Another way of opening the home page in a new tab is to middle click on the home button in the navigation toolbar.
Maybe you are looking for
-
Sharepoint PeoplePicker cannot search account on 2nd Domain with 2 way trust
Hi all, I have run into this issue for 2 days, and cannot figure out why. We have 3 different Sharepoint environments, and we have two-way trust between 1st and 2nd domain. But, one of the environments cannot search 2nd domain in PeoplePicke
-
More then one student license on same account
Hello. Can i have more then one student license on same account. The 60% of thingy. One for home, one for work and one for the notebook. They may run simultaneously because of the friends using the computer. All 3 computers will use same account name
-
MBP internet stalls, other devices are fine
Hi all, I bought a MBP when I was accepted into grad school a few months ago. I was very excited to make the switch from PC and it has been great for the most part. Unfortunately, things are no longer great. I have just moved into my new apartment
-
Adapter module to insert into DB
Hello, is it possible to write an adapter module which will insert whole payload into predefined table in DB? Can you please provide me hints, how to do it? Is it possible to use Java JDBC API in it, or do you have any best practices/cookbooks? The r
-
Hello, i am developing a Java Server Page with access to an Session Bean. My Problem is, that the error messages in the web browser which I get are not very helpful. Is there a logfile, that is written, where I can find more information or the whole