Coder Social home page Coder Social logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
Great suggestion.

Re-categorizing as "enhancement".

This will take some work/research. If you have a specific timeline you need 
this by, please email me. It appears Java has basic support for this built-in, 
however I haven't read the examples yet.

http://java.sun.com/products/plugin/1.2/docs/cookie.html

-Tres

Original comment by [email protected] on 22 Jan 2012 at 3:45

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from jzebra.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
Thank you for the quick reply.
I am integrating jZebra as we speak, the launch is supposed to be in a couple 
of months. I am trying to find a work around, but it would be great to have 
this feature soon.

Thanks,
Thomas

Original comment by [email protected] on 23 Jan 2012 at 1:08

from jzebra.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
It may not be feasible, depending on the security architecture of the browser.
If the session coookie is sent by the application as 'http-only', the java 
Applet may not have access to its value.
There is a workaround if you consider the global picture : the session 
identifier is usually known by your application (in PHP, you access it through 
the session_id() function), so you can change the url in your application 
accordingly.
For instance, in PHP, the code will look like :
$url='http://mysite.org/getzpl.php?'.session_name().'='.session_id();
echo 'document.jZebra.appendFile("'.$url.'");'."\n";

Original comment by [email protected] on 25 Jan 2012 at 10:58

from jzebra.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
I began research on this... Here's what I've found: (quoted from sun's site)

This suggests that it should already work.  Please email me so I can better 
understand how you are using it.  It suggests Netscape (which would be Firefox 
now) wants the applet and the web page to be in the same location (which I find 
ugly).

-Tres

Currently, cookie support in Java Plug-in is triggered automatically when a 
HTTP connection needs to be made.

HTTPS support in Java Plug-in 1.2.2 provides bi-directional cookie support. 
HTTPS is entirely implemented using the browser's API and cookies are handled 
automatically by the browser.

To ensure cookie support in Java Plug-in will always work as expected, we 
recommend the following:

make sure the document base is part of the codebase of the applet
make sure cookie policy is set correctly
your web server should not set cookies in the HTTP connection from the applet



Original comment by [email protected] on 1 Feb 2012 at 2:01

from jzebra.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
Here is another useful post on the subject, which requires turning off 
"Http-Only" option in ASP.NET.  Not sure if it applies.

http://stackoverflow.com/questions/201699/sharing-asp-net-session-cookies-with-a
-java-applet

Original comment by [email protected] on 1 Feb 2012 at 2:17

from jzebra.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
@Thomas:  Since cookie support seems to be built-in to Java SE, the any cookie 
limitations introduced by Java are not jZebra bugs.  Closing as invalid based 
on my investigation.  If you find this to be incorrect, please reopen.

Original comment by [email protected] on 16 Mar 2012 at 1:53

  • Changed state: Invalid

from jzebra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.