Forum .LRN Q&A: Re: LORS RTE SCORM 1.2 Conformance successfully tested

Collapse
Posted by Dario Roig on
Hi! In the University of Valencia (UV) we are using the SCORM that you developed.

We have reviewed the code to connect and we can read that the method to send the cookies is different. With Java Plug-in 1.6.0_27 works well but with the latest version Java Plug-in 1.6.0_29 doesn't work.
Have you any problem with the new versions of MVJ?

Thanks!!
packages/lorsm/src/java/org/adl/samplerte/client/ServletWriter.java

if( java_version.startsWith("1.4") || java_version.startsWith("1.3") || java_version.startsWith("1.2") || java_version.startsWith("1.1") ) {

System.out.println("COOKIES JAVA VERSION IS "+java_version);
con.setRequestProperty("Cookie", sessionid);
System.out.println("IL COOKIE SETTATO PER LA SESSIONE e'"+ con.getRequestProperty("Cookie"));

} else {

System.out.println("NOT SETTING SESSION COOKIES : JAVAWS should do it automatically");

//remove the cookieHandler installed by JavaWebStart (but this compiles with java 5 ?)
//CookieHandler cookieHandler = java.net.CookieHandler.getDefault();
//if (cookieHandler != null) {
// CookieHandler.setDefault(null);
//}

}