URL Rewriting Session ID Length in iPlanet Application Server

Hi there,
Does anyone know what the maximum length of the session ID value is when
using URL rewriting/encoding for session tracking (i.e.: ";jessionid=1234"
appended to the end of the URL) with iPlanet Application Server 6.0's
servlet container (or any previous versions)?
Does the length vary or is it fixed? And does WebSphere encode server or
failover information into the ID? WebLogic for instance, encodes the
primary and secondary failover servers into the ID when running in a
cluster)?
And finally, is there any way to restrict or specify the maximum length of
the session ID?
I ask this due to a limitation with some WAP clients & gateways which
prevents the URL from exceeding 128 characters.
Any info on this issue from iPlanet staff or anyone else is much
appreciated.
<background-info>
Please see the following links if you'd like some additional background:
http://e-docs.bea.com/wls/docs60/////wap/wapdev.html#1024984
under the heading "Session Tracking" at the bottom
http://groups.google.com/groups?hl=en&safe=off&th=eb7f38aa5086972e,13&seekm=
8gaki8%247d5%241%40newsgroups.bea.com#p
</background-info>
Regards,
Sasha Haghani

Sasha Haghani wrote:
Hi there,
Does anyone know what the maximum length of the session ID value is when
using URL rewriting/encoding for session tracking (i.e.: ";jessionid=1234"
appended to the end of the URL) with iPlanet Application Server 6.0's
servlet container (or any previous versions)?
I'm fairly certain that it is fixed. 18 for the attibute, 16 for the value, plus
1 for the equals. (Plus 1 for the ? if it didn't already exist.)
So 35 or 36 depending on how you count it. Someone needs to verify this and
check my counting though.
>
Does the length vary or is it fixed? And does WebSphere encode server or
failover information into the ID? WebLogic for instance, encodes the
primary and secondary failover servers into the ID when running in a
cluster)?I don't know what WebSphere does. iAS does not encode failover information in
the ID. Because of the way session is propogated, no server information needs to
be embedded in the id.
>
And finally, is there any way to restrict or specify the maximum length of
the session ID?No.

Similar Messages

  • Context lookup problem in iplanet application server 6.0 sp3?

    Hi all,
    I am writing codes in the following enviornment, iplanet application server 6.0 sp3 with iplanet web server 4.1 sp7 in Window 2000.
    When I tried to login to the system, error occured when i try to lookup context for my session bean.
    The error message is as follows:
    login_process.jsp: Home / Remote Error:String index out of range: -7
    [10/Apr/2002 18:09:10:5] error: Exception: SERVLET-execution_failed: Error in ex
    ecuting servlet JSPRunnerSticky: java.util.EmptyStackException
    Exception Stack Trace:
    java.util.EmptyStackException
    at java.util.Stack.peek(Stack.java:86)
    at java.util.Stack.pop(Stack.java:68)
    at com.netscape.server.deployment.AppComponentDescriptorUtil.popCurrentAppComponent(Unknown Source)
    at com.netscape.server.servlet.servletrunner.AppInfo.popWebAppDescriptor(Unknown Source)
    at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown Source)
    at com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    could anyone suggest a method to solve the problem?
    Thx very much!

    There is a major security breach in authenticating
    iPlanet Web Server 6.0 SP3 and SP4 using Sun ONE
    Directory Server. Using a valid user id, any
    password except null string would allow user access
    the restricted resources. iPlanet Web Server 6.0 SP5
    and 4.1 SP12 worked fine with similar configuration.Did you get an answer for this?
    We are having the exact same problems with our iPlanet Web server 6.0 SP3.
    thank you.

  • Deploying war file on iplanet application server 6.5

    Hi ,
    We are trying to deploy WebObjects application on Iplanet Application server server 6.5.
    Steps we tried for deployment :
    1) War file generated by WebObjects.
    2) Started IPlanet Application server.
    3) Opened the War file in the deployment tool.
    4) Verified that the WAR file to be deployed using the verify option in the deployment tool(Verified successfully)
    5) We tried to save the archive, then it throws an error saying "
    "Invalid entry compressed size (expected 52 bytes but got 51 bytes)".
    We ignored this message and proceeded further by clicking on OK.
    6) Deployed the WAR file using the deploy option
    7) In the deploy message box, it diplays that the application was deployed successfully.
    Then we tried to access the application by trying the following url : " http://localhost/NASApp/<CONTEXT NAME>/WebObjects/<APPLICATION NAME>"
    (eg : http://localhost/NASApp/SampleApplication/WebObjects/SampleApplication.woa>)
    We are getting the error saying that " GXError". We are not sure whether the the above mentioned url is the correct way to access the application !
    What we think the problem in deployment is
    i) because of error while saving the WAR file (Invalid entry compressed size (expected 52 bytes but got 51 bytes)
    ii) URL not appropriate
    Other observations :
    We tried to deploy to deploy sample application on Iplanet Application server. All these sample applications are deployed properly without the above mentioned error message. All these application are accessed by typing following url : " http:localhost/NASApp/<CONTEXT NAME>/<APPLICATION NAME>". IN all the sample application, url contains "NASApp" . We are not sure what this stand for and maps to. What we assumed is that it maps to the the iplanet app document root i.e "installedroot/ias6/ias/App"
    The exception throw while saving the WAR file is " com.iplanet.ias.tools.buzz.util.ArchiveHandlerException"
    Has any body who has tried this can help us?
    Thanks,
    Raju and Venkatesh

    Hi,
    First of all the application you are trying is from a WebObjects application server. I don't know how they package the modules and what is the format/file structure. I just went to their site, though they say that the WebObjects applications can be deploy on any J2EE Application server but still how they package and how they write the xml descriptors is not known.
    Looking at your exception it seem that first it is something to do the war/jar archive file compression thing (as the deployment tool is not able to read the complete file) then comes the deployment descriptors.
    I tried to get a few sample application from their site but I couldn't fine any, it will be great help if you can provide a WebObjects sample app to me (mail it to [email protected]).
    Regarding the NASApp string in URL, it has nothing to do with document root of iAS and also installedroot/ias6/ias/APPS dir is not the document root of iPlanet app server, this is the place where it save/explodes all the archives (ear).
    See iPlanet App server don't have any HTTP daemon to listen to the HTTP requests, so it needs a web server with a plugin (web connector) to forward the HTTP requests meant for iAS, and this NASApp string in the URL is the key to that.
    All the URLs are first send to the iAS plugin (as configured in web server's obj.conf file) and plugin look for this NASApp string (configurable), if it is there in the URL then it converts the HTTP request and send it to iAS over a proprietary protocol (KCP), otherwise it gives the request as it is to web server to process it.
    The NASApp string is a iAS registry parameter which you can change any time. And generally the context root part of the URL is the war file name (by default). So the typical URL for any web application (MyWeb.war) will be:
    http://<host>:<port>/NASApp/MyWeb/<Servlet_name>.
    I don't know why that extension "*.woa" is there. So if you send me a sample war file, I will be able to try it out.
    Please feel free to ask further questions.
    Sanjeev,
    Developer Support, Sun ONE Application Server-India.

  • Can't Load 3rd Party JDBC in iPlanet Application Server

    I am trying to use a 3rd Party Type 4 Oracle JDBC driver to connect to a database in iPlanet Application Server 6.0 SP3. I used the jdbcsetup.exe tool to register the driver and used the iAS Administrative Tool to Register the Datasource.
    External JDBC Driver Parameters:
    Driver Type: OracleConnectionPoolDataSource
    Driver Classname: oracle.jdbc.pool.OracleConnectionPoolDataSource
    Driver Classpath: c:\src\jdbc\lib\classes111.zip
    DataSource Registration Parameters:
    JNDI Name: OracleConnectionPoolDataSource
    DriverType: OracleConnectionPoolDataSource
    DatabaseURL: jdbc:oracle:thin:@decipher:1521:csi
    Code to Access datasource (Note: dsName=OracleConnectionPoolDataSource):
    try {
    // Define JNDI InitialContext object.
    InitialContext ctx = new InitialContext();
    ds = (DataSource)ctx.lookup("jdbc/" + dsName);
    dbConn = ds.getConnection();
    //requires all sql Statements to be manually commit(ed)
    dbConn.setAutoCommit(false);
    if(dbConn!=null)
         System.out.println("Getting a connection from dds.");
    catch (Exception e){
         e.printStackTrace();
    The Error that I am getting:
    [22/Aug/2002 15:43:51:9] info: RLOPMGR-005: OracleConnectionPoolDataSource: CALLBACK FAILED: CreateObject
    java.sql.SQLException: A. Couldn't load or create 3rd party class: oracle.jdbc.pool.OracleConnectionPoolDataSource
    at com.netscape.server.jdbc.Driver.connect(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.createNewConnection(Unknown Source)
    at com.netscape.server.jdbc.ProxyEvaluation.createObject(Unknown Source)
    at com.kivasoft.rlop.ObjectPool.reserveObjectnative(Native Method)
    at com.kivasoft.rlop.ObjectPool.reserveObject(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.getFromPool(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.getConnection(Unknown Source)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source)
    I would greatly appreciate any help on why I am getting this error. I am desparate!

    I'm sorry but I'm not an expert......
    As you know Classes12.zip contains two dir "javax" and "oracle".
    So my path for driver is "/servers/jdbc/classes12.zip (or wath is contains).
    In classpath variable in iasenv.ksh I put /servers/jdbc but it doesn't work.
    I tried with /servers/jdbc/oracle/driver.....the same
    Can you help me again
    Thank you very much!
    Massimiliano

  • IPlanet Application Server 6.0 Service Pack 3 Test Drive

    Hi,
    We are trying to port an existing web-app (runs on WebLogic and JBoss)
    to the iPlanet Application Server platform.
    We can deploy our app, but cannot access it once it is deployed.
    Is the iPlanet Application Server 6.0 Service Pack 3 Test Drive "cripple
    ware" or is it a fully functioning trial which allows you deploy new
    apps to it?
    Thank You,
    Eric Kahler

    Hello,
    If the issue is looking up the bean and you are looking up the bean as you
    would with JBoss or BEA:
    String beanName = "Bean";
    ctx = InitialContext();
    ctx.lookup( beanName );
    then you might have the problem there. Atleast this is what we have found
    with beans needing to be convered. Change the lookup to be ctx.lookup
    ("ejb/" + beanName ); and you might be better. I haven't tried it on JBoss
    or Bean but ctx.lookup( "java:comp/env/ejb/" + beanName) might work on all
    the different app servers
    TTYL, Jeff
    "Eric Kahler" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    We are trying to port an existing web-app (runs on WebLogic and JBoss)
    to the iPlanet Application Server platform.
    We can deploy our app, but cannot access it once it is deployed.
    Is the iPlanet Application Server 6.0 Service Pack 3 Test Drive "cripple
    ware" or is it a fully functioning trial which allows you deploy new
    apps to it?
    Thank You,
    Eric Kahler

  • What is different between setup.exe and ezsetup.exe for iPlanet Application server 6.0 SP3?

    iPlanet Application server 6.0 SP3 for windows versions.

    Hi,
    setup.exe has 3 types of installation modes, namely, express, typical and custom. But the ezsetup doesn't asks these questions. The difference between them are..
    Setup.exe - Express - Asks fewer questions like, iAS username password, directory server username, password, product key etc
    Setup.exe - Typical - Asks for same questions as of Express setup and few more additional questions and allows you to install iAS and use a directory server which is already installed.
    Setup.exe - Custom - The most complicated and the highly interactive installation where it requiress 32-33 inputs from the user and fully customisable.
    EzSetup.Exe - Doesn't have any sub option, doesn't allow you to use the existing directory server or web server, all it asks is 2 questions..., which directory to install and the product key.
    Hope this helps.
    Regards
    Raj

  • Iplanet application server 6.5 on windows xp

    I'm trying to install iplanet application server 6.5 on windows xp. but for some reason it just hangs at the end of the install. Leaving my no choice but to quit the instalation. Has anyone sucessfully install 6.5 on xp? and could anyone help? would be appreciated.
    Thanks in advance...

    I've just spent a day or two mucking around with getting the iPlanet 6.5 Application Server install running with IIS on XP, and have got as far as having the "fortune" application running. I also encountered the "hanging installation" problem on my 5th or 6th reinstallation. Here is my checklist of things to do:
    1. As has been pointed out earlier, you must have a static IP address assigned to the machine you are installing on.
    2. You should set up IIS before installing iPlanet - during the install you'll be prompted to set up the Web Connector for IIS.
    3. If you find that the install hangs at the end (seems to be in the middle of building the Start Menu shortcuts), then deinstall from the Control Panel | Add Remove Software and run the install in Windows 2000 compatibility mode - this article lays out how to start applications in compatibility mode:
    http://www.microsoft.com/windowsxp/using/games/expert/durham_og.mspx
    4. You need to switch IIS to run in-process as per these instructions:
    http://docs.sun.com/source/816-5788-11/app1.html#14411
    see the section "Registering the Plug-in on IIS 5.0 running on Windows 2000".
    Note that in XP the tab is called "Directory" rather than "Virtual Directory" and ensure that you grant Execute Permission to both Scripts and Executables (default is just Scripts I think)
    5. You need to grant security permissions to the registry key
    \\local machine\\software\\iplanet\\Appserver\\6.0\\CCS0\\HTTPAPI
    as per the post by Vaidyanathan Iyer :
    http://swforum.sun.com/jive/thread.jspa?threadID=20660&tstart=90
    Regards

  • Can I install iPlanet Application Server 6 on Solris on Intel

    Can I install iPlanet Application Server 6 on "Solris on Intel".
    Raj

    Hi Raj,<BR><BR>
    Sorry but unfortunately the short answer is no. <BR>
    The iPlanet Application Server is supported on <BR>
    UltraSPARC running Solaris 2.6 or Solaris 8<BR>
    or<BR>
    Windows NT 4.0 SP 5 <BR><BR>
    It's also available on HP-UX 11.0 and AIX 4.3.3<BR>
    but I don't know on which hardware<BR>
    You can check the documentation on http://docs.iplanet.com<BR><BR>
    Hope this helps<BR><BR>
    Caryl<BR>
    Sun Developer Technical Support<BR>

  • Redirecting Server busy message in Iplanet Application Server 6.5

    Hi,
    we are using iplanet application server 6.5 MU7. In the part of maintance activities we are planning to add server busy page in the server. Will any one can give inputs for adding server busy page in appserver with out touching the application code.
    Can anyone suggest the configuration parameters available in iplanet application server to add server busy page.
    thanks
    talls

    Hello,
    I'm facing the same problem when opening a workbook Excel from BEx Browser, did you solve your issue?
    Thanks,
    Alberto

  • Forms builder & iPlanet Application Server

    Is it posible to use files generated with Forms Builder (*.fmx) under the iPlanet Application Server (SUN)?.
    Thanks,
    Cristina.

    Hi Ronald,
    I have to do an application based in web forms to manage a data base stored in Oracle 9i.
    First I thought to do it using the Forms Builder.
    The company require standard J2EE and use only the iPlanet Application Server, although use Database Oracle 9i don't use the app Oracle.
    Is there not any possibility to use the Forms Builder?
    Since I can't use the forms generated with Forms Builder into the Sun App, I think a solucion is to do the forms with JSP.
    What do you think about??.
    Regards
    Thanks
    Cristina.

  • IPlanet Application Server 6.0, SP3 and Struts 1.0

    To all,
    I've created a How To document and modified application zip file for running
    the struts-example application on iPlanet Application Server 6.0, SP3. The
    good news is that this "ported" struts-example also works on Tomcat 3.2 and
    WebLogic 6.0 SP1!
    Please read if you're interested at
    http://www.icsynergy.com/downloads/index.html#struts-example.
    Please note that we've created a "patch" for SP3 to fix a "bug" in iPlanet.
    You can download this at
    http://www.icsynergy.com/downloads/index.html#patch.
    Have a good day,
    Matt

    Hi,
    setup.exe has 3 types of installation modes, namely, express, typical and custom. But the ezsetup doesn't asks these questions. The difference between them are..
    Setup.exe - Express - Asks fewer questions like, iAS username password, directory server username, password, product key etc
    Setup.exe - Typical - Asks for same questions as of Express setup and few more additional questions and allows you to install iAS and use a directory server which is already installed.
    Setup.exe - Custom - The most complicated and the highly interactive installation where it requiress 32-33 inputs from the user and fully customisable.
    EzSetup.Exe - Doesn't have any sub option, doesn't allow you to use the existing directory server or web server, all it asks is 2 questions..., which directory to install and the product key.
    Hope this helps.
    Regards
    Raj

  • Unable to use session.setAttribute() method in oracle application server

    i am creating a simple jsp page for two lines of code as
    <%@ page language="java" session="true" %>
    <% session.setAttribute("sam","sam"); %>
    and deploying it in oracle 10g application server. when i am accessing that page, getting an error as
    oracle.jsp.provider.JspCompileException:
    Errors compiling: page url
    Method setAttribute(java.lang.String, java.lang.String) not found in interface
    javax.servlet.http.HttpSession. session.setAttribute("sam","sam");
    can anybody give the solution???

    Here is a diagnostic page which will tell you what version of JSP/Java etc you are using, the session Id, and where the session comes from.
    The standard approach for session tracking is to use a browser "session cookie", using the standard name JSESSIONID.
    Session cookies are different from standard cookies as they just remain in memory, and do not get stored to your hard drive. As such, They are not so easy to monitor. This page also uses javascript to show any cookies.
    <h2> Server Info </h2>
    Server info = <%= application.getServerInfo() %> <br>
    Servlet engine version = <%=  application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>
    JSP version = <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion()  %> <br>
    Java version = <%= System.getProperty("java.vm.version") %><br>
    Session id = <%= session.getId() %><br>
    From cookie = <%= request.isRequestedSessionIdFromCookie() %> <br>
    <h3>javascript cookies</h3>
      <script>
        document.write(document.cookie);
      </script><br>What you described with the IE browsers sharing sessions when you start one from the other with "File:New Window" is the expected behaviour. All "child" windows of a browser share the same session. No, there is nothing you can do to stop this or affect this functionality.
    Cheers,
    evnafets

  • Migration guide from Iplanet application server

    Hi ,
    i would like to migrate application to oracle 9ias application server.Curently we are using iplanet application server6.5.
    From where do i get some useful documents.
    In oracle 9ias faqs , its written that its available on http://ias.us.oracle.com.But the site is not opening up.
    If some one has already tried migration please suggest to us as how to do.
    Thanks in advance
    smita

    Please refer to the following url:
    http://www.sun.com/migration/sunonetools.html
    This should give u a head start on what needs to be done and how,. WIth respect to webserver , i guess you can use it or leave it depending on the architecture you require to deploy your solution.
    Hope this helps !

  • Session time out in Websphere Application Server

    Hi ,
    I am using Websphere Application server 5.1 . I need to set the session time out for my web application. Actually, i edited the web.xml and set the value
    <session-config>
              <session-timeout>10</session-timeout>
         </session-config>But when I am refreshing my jsp page, after 10-15 mts, i am able to get a valid page without any problem. Actually since the session time out is 10 mts , I should not get a valid page after 10 mts . I tried one more option for setting the session time out . I opened the admin console of my App server and set the session time out there too. But session not seems to be timing out after 10-15 mts. I am still able to get a valid jsp page. I have many session attributes in that page. So after 10 mts, i should not get a valid page.. I dont know, what's wrong in my configuration. If some body knows the answer please help me.
    thanks in advance.
    Aneesh K

    So what you're trying to achieve is that the ui closes or becomes invalid if no action has been performed for a certain time? That should be easy enough, install a javax.swing.Timer somewhere in your application and set it to the time you desire. Whenever the user performs an action, invoke reset() on the timer (it's a fairly cheap operation). If the timer fires, you know the timeout occured.
    You have to decide for yourself what you consider a 'user action' in this context. If you want the session to stay alive as long as the user is still doing something, just install an AWTEventListener, which can react to pretty much anything, mouse movement, keyboard input etc.

  • How to check if a user session is active in Java application server

    Hi Experts,
          We have a online scenario with a third party system by which a portal user will launch the third party application in a new window from portal. The SSO will work at the third party web application with the dynamic key that is generated by calling a webservice for that user. Now, as the user works on the launched screen, they will have to check whether the user (logged in portal) session is still active. ie., they will be periodically calling a service hosted by SAP java application server to find out whether the corresponding user who launched the session is still logged in or logged out.
    So, my question is, how can i find out programatically whether a user/user's session is still logged in/active in SAP Netweaver Java AS? We are in version 7.3.
    Kindly help me in this regard.
    Regards
    Vijay.K

    Hi Vijay,
    Could you check below links
    Tracing Single User Sessions - Administration - SAP Library
    Display and Manage User Sessions (SAP Library - Tools for Monitoring the System)
    Hope this helps.
    Regards,
    Deepak Kori

Maybe you are looking for