Getting Session Cookie Not http protocol
Hi.
In doc, it is possible to get SessionCookie instance that
HttpContainer#findSessionCookie. How can I get SessionCookie
instance in the case not using http protocol or using cutomized sessionid?
And, How can I realize that a object accesses to DB independently of a http request.
For example, only one access in application for resource data.
Hi,
You may create a cookie using ApplicationPool.createSessionCookie against an ApplicationPool instance. ApplicationPool's may be instantiated using the singleton oracle.jbo.common.ampool.PoolMgr (see the findPool javadoc).
Once you have created a SessionCookie you must cache it yourself in your client. Once you are done with the cookie just invoke oracle.jbo.common.ampool.SessionCookie.timeout() or oracle.jbo.common.ampool.ApplicationPool.removeSessionCookie(SessionCookie) to clean up the cookie instance.
Only use timeout if there is a chance that you had not released the ApplicationModule or if you expect multi-threaded SessionCookie use (timeout will force release and synchronize the removal).
Hope this helps,
JR
Similar Messages
-
Web Service wdsl file getting generated as a HTTPS protocol instead of HTTP
Hi Experts,
I have a requirement
I have created a web service in development client which is used in interactive adobe form.
After moving the web service to production only defination is getting generated.
I have tried to manually create the service in SOAMANAGER , it is getting created as with https protocol.
In development client it was created as a http protocol.
Warm Regards
AbhinavHi Abhinav,
I'm assuming you don't have a QA system in your landscape if you're transporting straight from Dev to Production. I'm also assuming this because if you transported to QA before production you would have noticed that 'only' the definition is always transported. You have to do the configuration again each time you transport your change, this is SAP default behaviour because each webservice is client dependant so SAP won't know which client this service will be relevant for in the environment you're transporting to.
The HTTPS issue, this makes sense to me in the production environment. You don't normally have the HTTP protocol enabled in a production environment, only HTTPS for security reasons.
In yout production environment, check Transaction Code SMICM --> Got (drop down menu) --> Services
Check what protocols are active there (with a green tick). This will indicate whether the HTTP protocol in enabled in Prod or not.
Regards, Trevor -
When I try to access some websites, I get a "cookie not supported" message
I first noticed that I couldn't click through on links from a website and now there are websites I can't access at all. I have tried clearing my cookies but that didn't fix the problem
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
*Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
*Do NOT click the Reset button on the Safe Mode start window
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
If you use a bookmark then try to navigate to the page by starting from its main (home) page in case the bookmark is corrupted.
Clear the cache and remove cookies only from websites that cause problems.
"Clear the Cache":
*Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies" -
Session cookie not setting for secure domain in Chrome
I've been fighting with a login issue for the past few hours thinking it was my fault. I'm tired, so my IQ is cut in half right now. Makes for a very plausible scenario. However, I finally tried it in Firefox without issue.
It's just a simple login form, where the action is supposed to log me into both the secure and insecure domains. Here's the action:
action="{module_secureurl}/ZoneProcess.aspx?ZoneID=51&Referrer={module_siteurl,true,true}&OID={module_oid}&OTYPE={module_otype}"
That looks right to me. I also checked on my own site's login and had the same issue. I had just never noticed before because I don't use my secure domain.
Looks like either a bug in BC, or a bug in Chrome. Either way, I think it's worth having BC look into.I've been fighting with a login issue for the past few hours thinking it was my fault. I'm tired, so my IQ is cut in half right now. Makes for a very plausible scenario. However, I finally tried it in Firefox without issue.
It's just a simple login form, where the action is supposed to log me into both the secure and insecure domains. Here's the action:
action="{module_secureurl}/ZoneProcess.aspx?ZoneID=51&Referrer={module_siteurl,true,true}&OID={module_oid}&OTYPE={module_otype}"
That looks right to me. I also checked on my own site's login and had the same issue. I had just never noticed before because I don't use my secure domain.
Looks like either a bug in BC, or a bug in Chrome. Either way, I think it's worth having BC look into. -
Why I can't get the cookie from this web site when I can get it from google
public static void main(String[] args) throws Exception {
// I can get the cookie from "http://www.baidu.com"
// String domain1 = "http://www.baidu.com/";
// String domain2 = "www.baidu.com";
// I can get the cookie from "http://www.google.com"
// String domain1 = "http://www.google.com/";
// String domain2 = "www.google.com";
// I can not get the cookie from "http://www.csdn.net"
String domain1 = "http://www.csdn.net/";
String domain2 = "www.csdn.net";
URL url = new URL(domain1);
HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();
httpConn.setRequestProperty("User-Agent", "Internet Explorer");
httpConn.setRequestProperty("Host", domain2);
httpConn.connect();
String cookie = httpConn.getHeaderField("Set-Cookie");
System.out.println(cookie);
My question is: How can I get the cookie from the web site:http://www.csdn.net?I found it in my computer , the location is: C:\Documents and Settings\zhijun\Cookies\zhijun@csdn[2].txt
and there are many characters, they are:
__utma
17226283.1339458738.1221633513.1223535733.1223539291.58
csdn.net/
1600
786595712
30107528
1029600608
29960677
__utmz
17226283.1223539291.58.57.utmccn=(organic)|utmcsr=baidu|utmctr=VB.NET%B2%BB%C4%DC+%B6%CF%B5%E3|utmcmd=organic
csdn.net/
1600
4189609856
29997389
1029910608
29960677
LastVisitedForum
b7e466c6-291a-4072-acee-15d2be78c647*b5f1380c-f04c-4682-861a-54357b14186a*0a4a010e-8694-4139-b91f-a4ee1374981b*caa7532e-956b-4661-a53f-d46e3f1a8187*8b327318-2c42-4a49-8aed-ef8c33697e7f
csdn.net/
1536
2105548800
29964700
960690608
29960677
userid
2018946
csdn.net/
1536
1900813440
29963485
771368976
29960669
__utmb
17226283
csdn.net/
1600
1849111424
29960681
1029760608
29960677
ABCDEF
X1rZPCiZupWekhlTu78xWhr2Oj5GmFwk0J%252b8COfIv7IvVh2PgEPu2V7ooeZuUnene2j%252fDKJsNnZWYBSQxVkTfunvGq%252fDYuzFALM0ugLUmppZAHgfUWgQ%252bziPRLLJyFdzUpHwfG%252fReU8SfFy588HH02NPWPsO8RjgtHym%252bcJdUOnIH5J%252bkPEj%252b%252bZwlSPb5u0M0mPQRU1gOScfY4b981MifF4ksep8sZp1Ro2ofGHIg6l%252bgJ0P0XFASz2cJU8Objo%252f
csdn.net/
1536
1900813440
29963485
770898976
29960669
QWERTOP
6695
csdn.net/
1536
1900813440
29963485
771058976
29960669
activeUserName
boxiuzhen
csdn.net/
1536
1900813440
29963485
771058976
29960669
UserName
boxiuzhen
csdn.net/
1536
1900813440
29963485
771058976
29960669
PName
542a00960558bf1690fe08696d1245f407130025d59bd14ad6430f
csdn.net/
1536
1900813440
29963485
771368976
29960669
Is this prove that the csdn web site which I can not get the cookie is not using url-rewriting? -
Getting "Error 404--Not Found" while connecting to OLT session
Hi all,
I am getting "Error 404--Not Found" error while connecting to OLT session. I had tried re-starting all the services including the database services but to no avail.
Below is the description :
Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
If anybody had faced similar issues, please do let me know the resolution for the same.
Thanks,
SunnyIs that the first time you connect to OLT?
If yes, please check OATS release notes.
Thx
JB -
Upload Error message: HTTPS protocol is not supported
Hi,
Whenever I do a quick par upload i'm getting an 'Operation failed' message to check sap-plugin.log.
Log says
Upload Error message: HTTPS protocol is not supported, please ensure this server is not using HTTPS. My webdynpro applications are getting deployed without any issues.
How to resolve this?
Thanks
SumathiHi Sumathi,
As there are often problems with the Quick PAR Upload reported, I would suggest to use the "normal" PAR upload from the icon tray (you have to activate the portal icons in the icon tray). That is almost that "quick" (one or two clicks more needed, we don't talk about more than a second) and - it works (it least it should, and at least it works in most cases even if the Quick PAR Upload fails).
Hope it helps
Detlev -
ipod sync problems
ipod 2.2.1 touch OS10.6.8 itunes 10.6.1
The photos sync but the calendars and contents will not. I keep getting this error message...
«iTunes could not sync information to the iPod «name of iPod» because a sync session could not be started.»Greetings,
See this post: https://discussions.apple.com/message/12799057#12799057
Cheers. -
Signed Applet not loading on Mac OS X if using HTTPS protocol
Hi All,
I need to open a trusted applet on Mac OS 10.2. The applet works fine if using HTTP protocol. But if the protocol used is HTTPS the the applet does not loads and "javax.net.ssl.SSLException - untrusted server cert chain" exception comes on the console.
The error comes for both - Verisign and javakey - signed applet.
On seaching for possible solution on the net, i came across following link: http://www.macosxhints.com/article.php?story=20020525101202503&query=Workaround+for+secure+Java+applet+problems
It says that this is Mac's known bug and gives the workaround as:
1. Access the problematic site with Internet Explorer on Windows. Click on the padlock item and export the certificate to a file.
2. Copy the certificate to your Mac.
3. Use the command
sudo keytool -import -trustcacerts -keystore /Library/Java/Home/lib/security/cacerts -file mycert.cer
to import the certificate file to your keystore (substitute mycert.cer with the name of the file containing the certificate). The keystore is password protected - the default password is "changeit".
4. Restart your browser
But the client cannot be asked to do all this to run the applet.
Is this problem being solved by Mac in their java implementation or is there any other possible solution?
Thanx in advance.
Regards,
CharuI am experiencing the same problem - I notice it does not happen on OS9.2 using IE but appears a problem on all browsers on OSX
Apple gave me the following reply.....
Re: Bug ID# 3268633: cannot load applet class under https connection
Hello Andrew,
Thank you for bringing this problem to our attention. We have received feedback
from engineering on your
reported issue.
Please know that to get Java to recognize the certificate you will need to do
one of two things, depending
on which VM you are using. Since you want it to work with Internet Explorer, we
will assume Java 1.3.1.
In Java 1.3.1 you'll need to add the certificate to
/Library/Java/Home/lib/security/cacerts using
/usr/bin/keytool to import the certificate into the certificate database.
In Java 1.4.1 you should be able to just add the certificate to the keychain
using certtool. For more
details on how to do this, please refer to the information found at
<http://java.sun.com/j2se/1.4.1/docs/tooldocs/solaris/keytool.html>. After
doing so, if you should require
further help from Apple in resolving this issue, we recommend that you request
assistance from Developer
Technical Support. This must be done by filing a Technical Support Incident.
So I am supposed to tell every Mac user to do the above am I?!!! -
Session is not getting invalidated when i access more then 1 war applications
I am experiencing the following problem and i do not understand
the reason. I have an application (3 jsps) in a directory
called /private under weblogic 6 sp1
directory "DefaultWebApp_myserver". The login.jsp, logout.jsp
and logError.jsp exist in directory "DefaultWebApp_myserver"
below is the web.xml deployed with the default web application
----------------------------------------- web.xml ----
<?xml version="1.0" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<welcome-file-list>
<welcome-file>/private/checkCredentials.jsp</welcome-file>
</welcome-file-list>
<security-constraint>
<web-resource-collection>
<web-resource-name> MySecureBit0 </web-resource-name>
<description>no description </description>
<url-pattern>/private/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>NBAD_DOMAIN</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>MyRDBMS Realm</realm-name>
<form-login-config>
<form-login-page>Login.jsp</form-login-page>
<form-error-page>LoginError.jsp</form-error-page>
</form-login-config>
</login-config>
</web-app>
I have another application war. This application consist of
2 jsp files. Below is the web.xml
------------------------ end web.xml -----------------------
<?xml version="1.0" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<welcome-file-list>
<welcome-file>/private/checkCredentials.jsp</welcome-file>
</welcome-file-list>
<security-constraint>
<web-resource-collection>
<web-resource-name> MySecureBit0 </web-resource-name>
<description>no description </description>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>Engineer</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>MyRDBMS Realm</realm-name>
<form-login-config>
<form-login-page>../Login.jsp</form-login-page>
<form-error-page>../LoginError.jsp</form-error-page>
</form-login-config>
</login-config>
</web-app>
------------------------------ end web.xml ----------------------
Now i login in the default application that i have i link that takes me to the
second app (the war); then i go to the default
app and i logout. When i logout i invalidate the session. but it
seems that the session is not getting invalided because i can
enter the default
application and the war test application without login in.
If i do not access the test war application from the default application the session
is invalidate and i get the login page.
I hope i am clear.
Thanks
Ibrahim
I asked a similar question some time ago and the answer that I got was that each
application (war file) has its own session object. You cannot transfer information
from one application to another via the session id.
Vladimir
"ibrahim" <[email protected]> wrote:
>
>I am experiencing the following problem and i do not understand
>the reason. I have an application (3 jsps) in a directory
>called /private under weblogic 6 sp1
>directory "DefaultWebApp_myserver". The login.jsp, logout.jsp
>and logError.jsp exist in directory "DefaultWebApp_myserver"
>below is the web.xml deployed with the default web application
>----------------------------------------- web.xml ----
><?xml version="1.0" ?>
><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
>1.2//EN"
>"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
><web-app>
><welcome-file-list>
> <welcome-file>/private/checkCredentials.jsp</welcome-file>
></welcome-file-list>
><security-constraint>
> <web-resource-collection>
> <web-resource-name> MySecureBit0 </web-resource-name>
> <description>no description </description>
> <url-pattern>/private/*</url-pattern>
> <http-method>GET</http-method>
> <http-method>POST</http-method>
> </web-resource-collection>
> <auth-constraint>
> <role-name>NBAD_DOMAIN</role-name>
> </auth-constraint>
></security-constraint>
><login-config>
> <auth-method>FORM</auth-method>
> <realm-name>MyRDBMS Realm</realm-name>
> <form-login-config>
> <form-login-page>Login.jsp</form-login-page>
> <form-error-page>LoginError.jsp</form-error-page>
> </form-login-config>
></login-config>
></web-app>
>---------------------------------------------------------
>I have another application war. This application consist of
>2 jsp files. Below is the web.xml
>------------------------ end web.xml -----------------------
>
><?xml version="1.0" ?>
><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
>1.2//EN"
>"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
><web-app>
><welcome-file-list>
><welcome-file>/private/checkCredentials.jsp</welcome-file>
></welcome-file-list>
><security-constraint>
> <web-resource-collection>
> <web-resource-name> MySecureBit0 </web-resource-name>
> <description>no description </description>
> <url-pattern>/*</url-pattern>
> <http-method>GET</http-method>
> <http-method>POST</http-method>
> </web-resource-collection>
> <auth-constraint>
> <role-name>Engineer</role-name>
> </auth-constraint>
></security-constraint>
><login-config>
> <auth-method>FORM</auth-method>
> <realm-name>MyRDBMS Realm</realm-name>
> <form-login-config>
> <form-login-page>../Login.jsp</form-login-page>
> <form-error-page>../LoginError.jsp</form-error-page>
> </form-login-config>
></login-config>
></web-app>
>------------------------------ end web.xml ----------------------
>Now i login in the default application that i have i link that takes
>me to the
>second app (the war); then i go to the default
>app and i logout. When i logout i invalidate the session. but it
> seems that the session is not getting invalided because i can
>enter the default
>
>application and the war test application without login in.
>If i do not access the test war application from the default application
>the session
>is invalidate and i get the login page.
>I hope i am clear.
>Thanks
>Ibrahim
>
-
How to do Get with HttpWebRequest using a cookie over HTTPS in C#
Hi, I have a very complicated problem,
I have a login page in asp.net , after the validation process (login.aspx) the application allow you to load any other page (home.aspx)
I'm writing an application that must load the login page and send the user and password (POST) ,then store the cookie to be used to load another page that require validation.
I dont have any problem when I try with an application that use HTTP , but when I trying with an application that use HTTPS,
I get the cookie , but when I am trying to send it to load another page , is not working.
Can you help me please?Hello,
Thank you for your post.
I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
Since you are working with ASP.NET Web Application, I suggest that you can consult your issue on ASP.NET forum:
http://forums.asp.net/
for better solution and support.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
BC4J HTTP Container/session cookie time out
Hi,
We have a BC4J jsp app(developed in Jdev 9i Beta) deployed to oc4j 9ias. Every time the BC4J HTTP container and session cookie for the application time's out and a new instance of the application is invoked through a client browser, the RAM on the machine decreases. The fear is that the RAM will eventually fall to very low levels and adversely affect perfomance every time a time out occurs and a new instance of the application is invoked. When no time out's occur and new instances are invoked, the RAM is stable. The issue seems to be the time out's not releasing resources? The following is the message:
"BC4J HTTP container was timed out
The session cookie for the application, AdminAppModule, was timed out"
Any suggestions would be appreciated. Thanks in advance.Please see response to other post at:
Access,Oracle Trusted Connection ODBC?
JR -
Cookie version and HTTP Protocol
What is the significane of version number obtained from javax.servlet.http.Cookie.getVersion().
Can someone discuss about it?
Can a Server implementing HTTP 1.0 or HTTP1.1 set cookie with version 0 or 1. How does the protocol version matters for cookie version.
Also in the HTTP Header, 'connection=keep-alive' does it mean that connection will be http connection will be kept alive forever? When does the connection close? Any useful informationt/links is greatly appreciated.
Btw, I started reading : http://www.ietf.org/rfc/rfc2109 for cookie/state management. and http://www.faqs.org/rfcs/rfc2068.html for HTTP protocol.
But in the meantime, enlightened souls...help me understand HTTP protocol and cookie relateion and how thier version and attributes affect a connection.
Kumar.You are right, I don't want read up RFC's unless I get paid for those hours ;).
I want to know more about HTTP1.1 's header attribute 'Connection'.
When the value is 'Keep-Alive', I understand that connection is kept open for subsequent requests (this differs from HTTP 1.0 behaviour), but I want to know when it will get closed?
Another question is in Cookie's getMaxAge it returned -1, i.e persistent I guess it says write to file system. If then, when does it get deleted? How can I get the cookie's expiration time?
Kumar. -
"http protocol not enable" on Palm
I saw the topic that suggested using a HttpConnection and a setRequestMethod( HttpConnection.GET), so I tried that without any luck.
I have a Visor Platinum (no phone attached and no Internet-browser included). I think I read somewhere that it should be possible to establish a network connection through the cradle, but I keep getting the "http protocol not enable. Please enable Networking Preference".
How do I do that?[michaelBP],
I saw the topic that suggested using a HttpConnection
and a setRequestMethod( HttpConnection.GET), so I
tried that without any luck.
I have a Visor Platinum (no phone attached and no
Internet-browser included).Q1. Do you have SUN's MIDP for Palm 1.0 BETA installed onto to the Visor Platinum device?
Q2. If not, which kVM/JAM are you using on your Visor device?
Q3. A more generic question - which JAM (Java Application Manager) have you installed onto the Visor?
I think I read somewhere
that it should be possible to establish a network
connection through the cradle, but I keep getting the
"http protocol not enable. Please enable Networking
Preference".
How do I do that?Officially, the MIDP for PalmOS 1.0 BETA kVM from SUN does not support serial I/O communication, so you are out of luck here.
However, if you use the old kVM (CLDC + com.sun.kjava), then this is the unsupported way. It uses the com.sun.cldc.io.palm.comm.Protocol class to provide serial I/O communication. For more details, see this thread:
http://forum.java.sun.com/thread.jsp?forum=50&thread=156989
HTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/ -
Question
When trying to create a desktop icon, it does not go to the URL.....instead I get 'script' and not a website......the script has http//etc but I am not directed to the website......I previously had IE 8 (on Vista).....is that the problem?I do not have any installed plugins....at least none that I know of.....remember I am a new user......Basically, the desktop icon is not going directly to the Mozilla FF to get me to the web site I need to go to.....FF works when I use the Mozilla FF icon.....just not the icons I create.....THANKS!!! I have also tried reinstalling FF and get the same results.....HELP!!!The address beginning with file:/// denotes a saved file (local file). The file may not be present. You can try dragging the site icon of this page on the left edge of the location (Address) bar and release it on the desktop. Please try opening it. If it still shows an error it could be a problem with the system's zone permissions. You can try setting each zone in the Windows Control Panel or IE > '''Internet Options''' > '''Security''' tab to '''Default Level'''.
Maybe you are looking for
-
Shared library randomly disconnects or disappears or doesn't show up at all
Using an XP Pro machine to share library. Vista machine to connect to library. Half the time I start up iTunes and look on Vista the shared library is not showing up. Another half of the time it will be there and I'll be listening and bam it shuts of
-
Where can I get my power management board repaired ...replace the AC7000 chip ( that now has a little hole in it from a power serge ) or replaced in Fiji?
-
RFC & Logical Name difference-connectivity
Hi I have by mistake given different name of logical & RFC systems in CRM & ECC. Like if name of logical & RFC systems in CRM is X, then in ECC I have named them as Y. Now I have downloaded BP & Products without any problem. My question is : In futur
-
Uploading issues to other providers than .mac
has anyone had uploading issues to other providers than .mac??
-
ITunes duplicating albums and songs
ITunes is duplicating my albums. The songs are tagged certain, yet iTunes insists on dividing the album into several parts. When I delete the folder "iTunes" library and let iTunes again seeking the songs that are on the computer the problem is solve