In development or deployment?  

If you're launching in eclipse, make sure to change or disable the property in 
your run/debug configuration.  Right click on the project folder, choose "Debug 
As...>Debug Configurations", then select the WO tab.  In that long list of 
properties, you should see WOSessionTimeOut with the value your app will use in 
eclipse.

If you're launching on the server, and it isn't working from the properties 
file, then you can set it as a launch argument in monitor.  Alternatively, you 
can just set it in your didFinishLaunching() method on your application.

public void didFinishLaunching() {
        WOApplication.application().setSessionTimeOut(14400);
}

I'd be a little surprised if this didn't work from the properties file though, 
as I remember loading the proper WOAdaptor this way for the ERWebSocketExample 
app.

In any case, I'm not sure how you're timing out in less than 15 minutes if you 
have not changed the default or you successfully set it to 14400.  The default 
is 3600 seconds.

https://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/com/webobjects/appserver/WOApplication.html#setSessionTimeOut(java.lang.Number)

Do you see any exceptions in the app's log? Is it possible you've got a 
non-responsive instance, javascript goofing up the session cookie, throwing an 
exception in session.sleep(), ... ?

Ramsey


On Feb 29, 2012, at 12:04 PM, Theodore Petrosky wrote:

> I put this at the bottom of my Properties file expecting to control the 
> session time out time. It doesn't seem to do anything as the session times 
> out in less than 15 minutes.
> 
> #time is in seconds ie. 3600 =  1 hour
> WOSessionTimeOut=14400
> 
> 1st. What is the default sessiontimeout value?
> 2nd. How can I ask the server what the current value is for a given app. 
> and C. Am I doing this 'wrong'?
> 
> Ted
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
> 
> This email sent to [email protected]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to