URL Session id
Hi,
Our application is currently using the encodeUrl method from servelt response to append the session id in the URL.
Is it possible to remove all the encodeUrl methods in our code and configure the web ro application server to automatically append the session id to url.
Thanks
SC
ah,
Scott explained it here
Why is SESSION used in the URL?
Similar Messages
-
Hi,
i want to make a group of JSP pages in a Web App, but assuming that the browser doesn't accept cookies.
Is there anyway that i don't have to indicate every link as
response.encodeUrl("index.jsp")I've heard something about a <url-session-tracking/> tag, but i've tried to put in the web.xml file, but it doesn't work.
I just want to put Index and the App Server takes care of putting the jsessionid info in front of the url
Thank youCancelling this question.
-
Hi,
i want to make a group of JSP pages in a Web App, but assuming that the browser doesn't accept cookies.
Is there anyway that i don't have to indicate every link as
response.encodeUrl("index.jsp")I've heard something about a <url-session-tracking/> tag, but i've tried to put in the web.xml file, but it doesn't work.
I just want to put Index and the App Server takes care of putting the jsessionid info in front of the url
Thank youHi Justin,
This should definitely work with the WebInstaller approach. In fact, we test this as part of our WebTest suite (on all certified containers, including Jetty 6). I believe you are not passing the jsessionid parameter correctly. From your post, you say your pass it like so:
http[s]://<server_ip>/<path>/index.jsp?jsessionid=<session_id>
The jessionid is not passed as a standard HTTP parameter - the correct syntax should be:
http[s]://<server_ip>/<path>/index.jsp;jsessionid=<session_id>
-David -
?x=y arguments to URLs, sessions and JSF
An on-line magazine would like their subscribers to be able to access, and bookmark articles with URLs such as
http://www.example.com/article.jsf?article_id=12345
Users shall be able to e-mail these URLs to their friends. When clicking on the received URL, the friend shall be directed directly to the article.
However, accessing any article requires registration (so "directly" here means "directly after logging in, potentially after a new user registration step").
I'm stumped about how to pass the "?article_id=12345" around in a JSF context. I cannot find any examples. The Servlet examples don't seem to apply.
(My application is not an on-line magazine but the structure of the problem is the same, so I used this well-known example).Turns out this very web application -- the sun forum system -- has exactly the problem that I described: URLs encode the identity of the forum or post using URL arguments so the URLs can be bookmarked, but at least for certain functionality, a session is required.
How does one do that using JSF? -
In my application i am URL class to connect to a application server and i read the performance summary
testURL = new URL(toFetchURL);
uc = testURL.openConnection();
in = new BufferedReader(new InputStreamReader(uc.getInputStream()));
String inputLine;
StringBuffer sb = new StringBuffer("");
while ((inputLine = in.readLine()) != null) {
if(DEBUG) System.out.println(inputLine);
sb.append(inputLine).append("\n");
if(inputLine.startsWith(stopPattern))
break;
in.close();
This the piece of code i am using
I am executing this every 5 minutes this results in inflating the number of sessions in the application
the number of sessions get increased and these session will be closed only after 30 minutes which session timeout set in application server
How do i get rid of these sessions?
Any suggestions/Thanks for the reply
can u give more insight how to cache session id and reuse it
Thanks in advance
Anil -
How do I use dynamic JSP vars in a form tag with implicit sessions?
I'm using iAS 6 SP4 and 'lite' sessions w/ sticky LB on Win2K for development and need to use a dynamic variable (via an = scriptlet) to specify the URL a form tag's ACTION method posts to. The implicit URL session encoding attempts to add the hidden input tags to the form but part of it is getting cut off. If I remove the dynamic var scriptlet from the form tag it works fine. How can I use dynamic vars and implicit URL session encoding?
Here's my code sample:
<FORM NAME='Create' METHOD='POST' ACTION='<%= servletRootStr %>CreateServlet' TARGET='_top'>
Output is:
<FORM NAME='Create' METHOD='POST' ACTION='http://my.server.com/NASApp/WebStuffApp/Create' TARGET='_top'>T NAME="GXHC_gx_session_id_" TYPE="HIDDEN" VALUE="GXLiteSessionID--8351372849698357580" ></INPUT><INPUT NAME="GXHC_GX_jst" TYPE="HIDDEN" VALUE="d692bc3d662d6164" ></INPUT>
Because the <INPUT> tagon the first session var is cut off, up to the T, the page obviously fails. Can this be fixed with a config setting, or is it a bug in iPlanet??Thanks for helping me Anurag.
The problem I tried to solve was that I want the result from my service methods
in XML format. I thought a callback/polling was the best alternative, am I right?
Since the callback option doesn´t work I will try to poll the service.
Are there any other options for solving my problem??
Thanks again!!
/A
"Anurag Pareek" <[email protected]> wrote:
>
Andrej,
I guess you are trying to invoke a Webservice which defines a callback
method
from a JSP, and want the JSP to handle the callback made by the webservice.
For a client to be able to handle a callback made by a Webservice, it
has to be
a web service in itself.
Even some web service tools do not support 'Solicit responses' and hence
they
would not generate handlers for the callback methods by default. You
can download
a callback WSDL in such cases and implement it on the client side. The
server
side web service will then callback to that webservice.
The other option to callbacks is to use polling methods. This can be
done from
any client such as Java client/ JSP client or a .NET client.
Hope this helps. Let me know if you have any further questions.
Regards,
Anurag
"Andrej" <[email protected]> wrote:
I´ve tried this but with no success..
How do I recieve the data in a servlet/JSP-page?
Thanks. -
Hi,
I have created a web based application which uses FORM based authentcation. The application is developed in NWDS 2.0.16.
When I deploy the application and access it in IE there are two parameters JSESSIONID and SAPLB which get appended to existing URL.
I have set the context root of the application as myapp so for eg If i type in browser the following URL --> http://server:port/myapp and press go the application is loaded and the URL becomes something like this --> http://server:port/myapp/my.jsp;jsessionid=(J2EEXXXX)XXXXXXXEnd;saplb_*=XXXXXX
I have tried an alternative by setting <i><url-session-tracking/></i> in web-j2ee-engine.xml file but still the JSESSIONID gets appended in the URL.
Is there any way by which this JSESSIONID can be avoided in the URL as the problem is that if user adds the URL in Browser Favorites and then tries accessing the application it throws an error.
<b>- Chintan</b>Hi Chintan,
> ...
> URL --> http://server:port/myapp and press go the
> application is loaded and the URL becomes something
> like this -->
> http://server:port/myapp/my.jsp;jsessionid=(J2EEXXXX)X
> XXXXXXEnd;saplb_*=XXXXXX
>
This is the default behaviour for the first request from the client. After that, by default, the session is tracked with session cookies. You can find the complete description here:
http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/25c82019068449ac97d585c905a0f2/frameset.htm
> I have tried an alternative by setting
> <i><url-session-tracking/></i> in web-j2ee-engine.xml
> file but still the JSESSIONID gets appended in the
> URL.
I think with this configuration you set the behaviour to use URL rewritting. So this is the opposite of what you want to achieve.
Best regards,
Stefan Brauneis -
Session timeout skillbuilders question
Application security attributes settings
Session Timeout Maximum Session Length in Seconds 60
On session timeout direct to this URL <url>
Maximum Session Idle Time in Seconds 45
On session idle time timeout direct to this URL <url>
Session timeout component settings
Name: SkillBuilders Session Timeout (1.0.1) [Plug-in]
*Session Timeout Action Alert
*Session Timeout Message Application will timeout shortly
*Mask Browser Screen on Timeout No
*Session Idle Warning Yes
*Session Idle Title Idle message Warning ( I cannot see this displayed but when I copied that area this came)
*Session Idle Message This application session will expire shortly! If you want to continue working please click ok on the alert.
*Show Warning Seconds Before 40
*Keep Session Alive Yes
So the moment I start my application and the login page is displayed i get the idle message displayed on the screen. So my application should timeout in 1 minute. I should be alerted after 45 seconds.
Are the settings correct?
MuraliPlease keep in mind that maximum session length and idle time are two different things. The following configuration should satisfy your requirements
Configure the following application attributes:
"Maximum Session Length in Seconds" = ??? -- you did not specify how long your session can last, if left blank it will revert to the instance level setting which defaults to 8 hours
"Maximum Session Idle Time in Seconds" = 10800 -- the maximum amount of time the user as to interact with the server again
Configure plugin settings:
"Session Timeout Action" = ALERT
"Session Timeout Message" = <your message>
"Session Idle Warning" = Yes
"Session Idle Title" = <your title>
"Session Idle Message" = <your message>
"Show Warning Seconds Before" = 900 -- 15 min x 60 seconds
"Keep Session Alive" = Yes -- this will renew the session if the user interacts with the idle warning
Please let me know if you have any questions.
Good Luck!
Tyson -
When using a URL it always asks for a username and password
I’ve just started using the Windows version of OracleXE.exe with Apex3.1 and I would like to create a menu web-page holding a list of URL’s that can be configured by inserting records into a simple table. I am having problems with multiple authentication user-name and password. I can read the table and create a URL within a web-page swapping the text “#SESSION#” with the &Session.
But each time I open a new application within the same schema I get the login page (when that user has already connected with their password).
Test data:
create table x_url_table(url varchar2(256),display_text varchar2(32));
insert into x_url_table values ('http://127.0.0.1:8080/apex/f?p=106:1:#SESSION#:::','query country details');
insert into x_url_table values ('http://127.0.0.1:8080/apex/f?p=108:2:#SESSION#:::','simple select as a test ');
From the Application Builder page I choose:
"Create" -> "Create Application" -> “add Page" [I entered the table name x_url_table[and implementation set to classic]] -> “Next” [no tabs] -> “Next” [no for shared components] -> “Next” [Application Express for Authentication] -> “Next” -> “Create”
When I press the run-page-icon it displays the URL like below(if I click-it it does not open webpage):
http://127.0.0.1:8080/apex/f?p=106:1:#SESSION#::: query country details
http://127.0.0.1:8080/apex/f?p=108:2:#SESSION#::: simple
I then tried “edit-page”-> “edit-region” -> “region source” I swapped the SQL for this:
SELECT
replace(a.url ,'#SESSION#','&SESSION.') as url
, a.display_text
FROM x_url_table a
Plus I then added a link “edit-page”-> “edit-region”-> clicked the tab “Report Attributes”->clicked the “add column link”
Scroll down to “column link”
“Link Text” I set to #DISPLAY_TEXT#
“Target” choose the L.O.V option “URL”
“URL” I set to #URL#
Push apply button
Press the run-page icon it displays everything correctly (see below) but when I click-the-URL it asks me again for the login screen with a user/password request.
Can this be bypassed?
As, I am already connected to the schema using the same username and password!
How do I allow my current session to automatically log me in to a different page?
link Url Display Text
query country details http://127.0.0.1:8080/apex/f?p=106:1:1331572188999480::: query country details
simple select as a test http://127.0.0.1:8080/apex/f?p=108:2:1331572188999480::: simple select as a test
so what do I need to do login just once!Steve,
See this thread:
Application Link
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://htmldb.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
hi,
i developed j2ee code in eclipse and using tomcat server ver. 4.1. after completing the code, i uploaded the war file into web logic server. In weblogic server when i click on "LogOut" the server is also shutting down along with the page. but this is not happened with TOMCAT.
my invalidation code is
if (event.equals(Constant.EVENT_LOGOFF)) {
/* invalidate the session and forward to logout url */
session.invalidate();
System.out.println("url logoff -> " + logoutUrl);
response.sendRedirect(logoutUrl);
please tell me what could be the problem.
thanks
AnandaHi,
To set these values you can use "plan.xml" which is not part of your application physically. Only u need to have a weblogic.xml file in your application ....even it may be empty...because you can add the Tags functionality on the fly without editing your application.....
Please refer to:
http://jaysensharma.wordpress.com/2009/12/16/updating-cookiename-using-plan-xml/
http://jaysensharma.wordpress.com/2009/11/29/shared-library-with-plan-xml/
http://jaysensharma.wordpress.com/2010/03/24/changing-context-root-of-an-ear-app-using-plan-xml/
Thanks
Jay SenSharma -
I have stored a URL in a varchar2 column in an oracle table, and used the
LINK feature in htmldb to create a link out of the text for the
column. However, when I try to run the page which was gotten from that text in the database, it fails to perform substitution of the session state variables (e.g &APP_ID.) which was part of the text stored in the database.
Is there some way to get the substitution to work, or handle the URL text
differently in the db?
I am trying to get a "list" of urls that I can search on- which is why I
chose a table.. There may be a better way of doing this.
thanks for any help..
larryLarry,
try to code the url in your table this way (use the pseudo-variables #APP_ID# and #SESSION# and replace them with the actual values in your report):
f?p=#APP_ID#:1:#SESSION#Then use the following select in a report region:
SELECT HTF.anchor (REPLACE (REPLACE (url, '#SESSION#', :app_session)
, '#APP_ID#'
, :app_id)
, 'click me!') AS "myLink"
FROM mytableSee the following example using dummy values and dual:
SELECT HTF.anchor (REPLACE (REPLACE ('f?p=#APP_ID#:1:#SESSION#', '#SESSION#', :app_session)
, '#APP_ID#'
, :app_id)
, 'click me!') AS "myLink"
FROM DUAL~Dietmar. -
I cannot seem to get the iisproxy/iisforward combination to properly handle
encoded URL session strings.
I have been performing my tests with WebLogic Sever 5.1.0sp5, IIS 5 and
Windows 2000 (both IE and Netscape). I use the
examples.servlets.SessionServlet included with WebLogic server. It has a
link that tests encoded URL session management. With sp4 and before, the
iisproxy handled this well, so long as I included the arbitrary extension.
The forwarding works to hit the servlet the first time, but subsequent
times present me with a 404, as if the proxy decided it shouldn't forward
the request and IIS is searching its files. IIS logs confirm this.
Anyone been able to get encodeURL() calls to work through the proxy?
JesseEither no one uses encodedURLs or no one bothered trying this. However, I
found this behavior in both IIS 4 and IIS 5 and filed a bug report. A
change request has been made and can be tracked via ID 189897.
Jesse -
Hi
in one of our systems the J2ee-engine appends the JSessionId to every URL. In the other systems the session-handling is running properly cookie-based. Does anyone know where to configure this?
TIA cbHi,
using URL rewriting to send JSESSIONID is controlled by a property in the additional deployment descriptor (i.e. web-j2ee-engine.xml) of the application. By default, JSESSIONID is sent as a cookie (if the HTTP client supports cookies), and URL rewriting in case the client does not support cookies. Setting the <url-session-tracking/> in the descriptor forces the J2EE Engine to use url rewriting always. -
Sessions persist even after logout?
Another problem I am having is that sessions seems to persist even after the portal user has logged out. When I log back in, some settings (which I configured in the previous session) are still set - but I want it reset to the default state.
It holds the session for 1800 seconds (30 minutes) of inactivity before it will clear it... Documentation I read says that the session should be cleared when the user is logged out, but that doesn't seem to be the case.
Suggestions as to what I might be doing incorrectly?
Thanks,
- NickInteresting - I didn't know about that (I'm light on the Admin skills of Oracle Portal)...
My logout behaviour is indeed set to "Logout closes both the Login Server application and Single Sign-On sessions" - the single sign-on session duration is 24 hours (but I am not sure it matters).
Something else unusual about the portlet behaviour:
One page I have that has 3 portlets on it (this is a navigation portlet, which remembers your last selected location) - when I logout, that session is cleared (or seems to be)
On the another page I have 2 portlets on it and when I logout, that session is NOT cleared...
Page caching is turned off in both my browser and in Oracle Portal, my portlet has a call to setPageExpires(0)...
The code specifically is:
// get the current session
ProviderSession session = pr.getSession();
// determine the unique parameter to save in the session
String pathURL = PortletRendererUtil.portletParameter( pr.getPortletReference(), "url" );
// get the previous value saved (if there is one)
currentURL = (String) session.getAttribute(pathURL);
// save the new URL
session.setAttribute(pathURL, newURL); -
Request timed out because there has been no reply from the server in 600000
Issue:
Request timed out because there has been no reply from the server in 600000
Scenario:
1. All the crystal reports are designed by using Crystal Report 2008 Version -- 12.3.0.601
2. All reports are uploaded to CMC (SAP Business Objects Enterprise XI, Product: 12.1.0)
3. using Front-End .net Winform
4. Crystal Report is binding is done using Business View Manager (since having more than one databases)
5. Business View Manager Connects to Oracle using "Oracle Server" connection
6. Loading reports as follows
string queryString = string.Empty;
SessionMgr sessionMgr = new SessionMgr();
EnterpriseSession enterpriseSession = sessionMgr.Logon(userName, userPassword, serverName, authType);
EnterpriseService enterpriseService = enterpriseSession.GetService("InfoStore");
InfoStore infoStore = new InfoStore(enterpriseService);
enterpriseService = enterpriseSession.GetService("PSReportFactory");
Object psrfObject = enterpriseService.Interface;
PSReportFactory psReportFactory = (PSReportFactory)psrfObject;
queryString = "Select SI_CUID, SI_ID, SI_NAME, SI_PARENTID From CI_INFOOBJECTS " + "Where SI_PROGID='CrystalEnterprise.Report' " + "And SI_ID=" + ReportId;
InfoObjects infoObjects = infoStore.Query(queryString);
InfoObject infoObject = infoObjects[1];
ReportDocument crDoc = new ReportDocument();
crDoc.Load(infoObject, enterpriseSession);
7. All the reports are getting loaded properly and i am able to dynamically set the report parameters
8. After executing report, some of the reports take more than 10 minutes, due to which shows following error
Request timed out because there has been no reply from the server in 600000
Note i have done following:
1. I have checked stored procedure running through oracle for more than 10 minutes (1 hr, 2 hrs)
2. Tried simply running crystal report without front-end running perfectly more than 10 minutes (1 hr, 2 hr)
3. When i run .net winform application for specific reports which takes long time, gives "Request timed out because there has been no reply from the server in 600000"
Also i have done lot much R&D and spent almost weeks to get resolution but not getting any solution out of it, please help me in this case
HKEY_LOCAL_MACHINESOFTWAREBusiness ObjectsSuite 12.0Report Application ServerClient SDKCorbaAdapterWaitReplyTimeout = 600000 and HKEY_LOCAL_MACHINESOFTWAREBusiness ObjectsSuite 12.0Report Application ServerInprocServerEnterpriseRequ
AS per following URL
Session timeout
1. Log into Central Management Console
2. Go to server,right click on Crystal report processing server and select properties,change the idle connection time out to 60 minutes
3. Also right click on crystal report cache server and select properties ,change the idle connection time out to 60 minutes
4. Restart Crystal Report Processing Server and Crystal Report Cache Server
5. Change the session time out to 60 minutes in web.xml of INfoviewApp,InfoViewAppAction,PlatformSerivces and CrystalReports.
6. Navigate to the following location
<BO Install Dir>Business ObjectsTomcat55webappsInfoViewAppWEB-INF
7. Edit the web.xml in notepad and search for the below lines.
<session-config>
<session-timeout>20</session-timeout> <!-- 20 minutes for session objects -->
</session-config>
8. Increase the Session-Timeout parameter to 20 to 60 minutes in web.xml . Save this file
9. Repeat the same for the web.xml file in the InfoViewAppActions folder in <BO Install Dir>Business ObjectsTomcat55webappsInfoViewAppActionsWEB-INF
10. Repeat the same for the web.xml file in the PlatformSerivces folder in <BO Install Dir>Business ObjectsTomcat55webappsPlatformSerivcesWEB-INF
11. Repeat the same for the web.xml file in the CrystalReports folder in <BO Install Dir>Business ObjectsTomcat55webappsInfoViewAppActionsWEB-INF
12. Restart the tomcat server
Still i am getting same error, please help me, if you have any idea, clue with respect to this error on winformThis error is specific to RAS. The default CORBA request timeout is 10 minute = 600000 ms. When the RAS SDK does not get the reponse back from RAS server in 600000 ms it throws this message. Why it works in InfoView\CMC what I believe you refer to as "Front End' application is because InfoView\ CMC don't use RAS.
1. First make sure that a smaller report wich runs pretty fast ( 1-2 min) works. This will confirm that there is no connectivitiy issues between RAS and RAS SDK.
2. If you get the efrror for every single report, even the smaller ones, make sure the box running RAS and RAS SDK code( in case they are 2 different) can ping each other with IP, shortname and FQDN. If there is a firewall between them, the RAS port needs to be opened for bidirectional communication. By default RAS chooses a random port for communication with SDK but within CMC you can configure it to use a specific port and open it.
3. If the issue is specific only to reports that are long running, typically more than 10 minutes, then you need to inclease the CORBA timeout to a value more than what the reports typically would take to process. This is done on client code side or IIS in this case.
Here are the steps:
Make the following changes on the application server/system.
Open RegEdit by going to Start > Run and typing in regedit.exe. Then click Ok.
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Report Application Server\Client SDK\CorbaAdapter
Change the value of SendRequestTimeout(ms) to 100000.
Change the value of WaitReplyTimeout(ms) to 6,000,000 ms. The default value is 600,000 ms and may not be long enough.
Restart IIS by going to Start > Run and typing in iisreset. Then click Ok.
Retry the failing application.
See note: 1296656
This error should be easy to fix
Edited by: Aasavari Bhave on Feb 2, 2012 11:20 AM
Maybe you are looking for
-
Nano intermittently not showing up in iTunes with 12:00 AM Time in Title
After I updated my 2GB Nano with Updater 2006-01-10 from my eMac running MacOS 10.3.9 and iTunes 6.0.2 using USB, it ran for a while, but then it got hung and I had to restore it. Since then, it is intermittently not showing up in iTunes or on the de
-
I've purchased an entire album but some of the songs stop playing midway through. How can I rectify this?
-
How can I convert my ATT 4G LTE iPad 3 to work on Tmobile?
How can I convert my ATT 4G LTE iPad 3 to work on Tmobile?
-
Looking for a camera with the flip photo capability of the iPhone~ any suggestions?
Looking for a digital (small) camera that would allow me to see myself when taking a photo without having to flip the camera completely around... Are there any suggestions on where I should start to look/recommendations? New to the camera world!
-
The video stabilisation icon is greyed out
I am unable to stabilize videos while using iMovie 10.0.1. The stabilization icon is greyed out and nothing happens when I try to click through. Is anyone else facing the same issue and is there a resolution?