• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

iplanet session time out

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I have developped some web pages using jsp on an iplanet webserver. I have a session time out (certainly due to iplanet) after 30 minutes and I want to extend it to its maximum length.
So what do I have to change in the iplanet config to extend this session time out (iplanet online doc is not usable : no search possibility due to firewall).
Thanks for your help,
chris
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
chris b,
JavaRanch has a Naming Policy Please read and follow.
Also, This would get better response in the iPlanet Forum, I'm moving this there.
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
at the file servlets.properties find the propertie servlets.sessionmgr.initArgs
modify it to
servlets.sessionmgr.initArgs=maxSessions=20,timeOut=300,reapInterval=150
 
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For app server portability you may wish to use setMaxInactiveInterval(int interval) method of HttpSession class from servlet api.
Faisal
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Eric,
thanks for your help but it seems not to solve my problem. I've got to investigate more.
----
From my part I work in Luxembourg near France.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello chris b,
I hope you understand my english. I am spanish and my english vocabulary is quite little.
I think that your problem is this: You open a session and, after 30 minutes, the session is always closed.
Well, if your iPlanet 6 is mounted in a PC with Windows 2000/NT (single or multiple processor) OR in UNIX/LINUX (with single processor), your session manager (I suppose that you use IWSSessionManager by default) is set with single-process variable (by default too).
IWSSessionManager in single-process "mode" do not have persistent sessions and you must set the session-data-store variable in the IWSSessionManager.java class to this 2 values:
1) com.iplanet.server.http.session.JdbcStore
2) com.iplanet.server.http.session.FileStore
The first value means that you will save the session values in a JDBC database. If you do this, the values of JDBC drivers in web.xml must be put in the jvm12.conf file. YOU MUST CREATE A DATABASE WITH THE SESSION PROPERTIES LIKE TABLE FIELDS.
The second value means that you will save the sessions values in a DFS table and you do not have to do anything more.
If you have an UNIX/LINUX machine (i have read but i do not probe this), you only have to put in the magnus.conf configuration file, the Maxprocs directive set to 2:
MaxProcs 2
This, in theory, must set the IWSSessionManager to multi-process (please, if you probe this, confirm to me that it works)
If you do not understand anything, read the iPlanet Web Server Programmer's Guide to Servlets (pages 58,59,60 - IWSSessionManager) (http://docs.sun.com/db/coll/S1_ipwebsrvree60_en )
I hope this text will be useful for you (with my "little" english ;D ),
Javier Menor Mart´┐Żnez
Madrid, Spain
 
Javier Menor
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is a mistake in my reply: It is not a DFS table, it is a DFS path (Distributed File System) accesible from the server.
Sorry,
Javier Menor.
 
chris basse
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, javier
Sorry for being so long to reply but I'm very busy at the moment.
don't matter for your english, I'm french and everybody knows that french people are really bad in foreign languages :-)
In fact, we bypassed the problems few time ago. I say we because I'm not the owner of this website anymore and the new webmaster changed the way of doing it so ... please consider this post as "solved".
Thanks a lot for your help
Christophe
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic