WS7 Admin server timeout?
Hello,
In other Sun server products (e.g., SJSAS) it is possible to set a session timeout for the admin webapp. I cannot find this setting anywhere in the admin guide or the config files reference manuals for WS7.
Can someone please suggest how this setting can be changed?
Thanks,
Bill
[317 byte] By [
wgkorba] at [2007-11-26 17:12:38]

# 1
hi
may I ask as to why u need such a feature ? the default session time out for admin gui is 60 minutes. if u need to customize then you will need to edit the following file
if u need this and if u consider u rselves an expert user, then please do the following :
<ws7-install-root>/lib/webapps/admingui/WEB-INF/web.xml and search for session-timeout string in this file and appropriate change the value mentioned to whatever session time out u want here. (pl. note that the value is in minutes)
please note that what u r attempting here is not supported or certified by Sun and might change in future releases.
u have been warned :-)
yes, i agree that in future releases, web server 7.0 can provide this feature within our gui or cli
# 2
Hello,
I've recently added a NSAPI plugin to my production web server which is IPlanet 4.1. This plugin makes a simple cookie-based decision about the application's home page. The code looks something like the following:
NSAPI_PUBLIC int select_home_page(pblock *param, Session *sn, Request *rq)
{
// variable declarations
char *strHttpCookie, *selectedHomePage;
...............
.................
// Make a cookie-based decision on the home page for the application
strHttpCookie = (char*)pblock_findval("cookie", rq->headers);
selectedHomePage = "default.html";
if (strHttpCookie != NULL && strstr(strHttpCookie,"cookieVal_1") != NULL)
{
selectedHomePage = "homePage1.html";
}
else if (strHttpCookie != NULL && strstr(strHttpCookie,"cookieVal_2") != NULL)
{
selectedHomePage = "homePage2.html";
}
pblock_nvinsert("fn", "home-page", param);
pblock_nvinsert("path", selectedHomePage, param);
resultCode = func_exec(param, sn, rq);
return REQ_NOACTION;
}
I've added the following two lines to obj.conf:
Init fn="load-modules" shlib="/usr/netscape/server4/plugins/nsapi/myNewNSAPI.so" funcs="select_home_page"
......................................................
.....................................................
NameTrans fn="select_home_page"
While this works fine, I've found that CPU utilization by the concerned IPlanet process has shot up to more that 70% (before the change, it used to hover around 3%).
My site is subject to heavy traffic, which causes me a lot of concern.
Does anybody have any idea why IPlanet has started consuming so much CPU? Is this common with NSAPI plugins?
Any help on this would be much appreciated.
Regards,
Dipak Jha