Hi Sergio,

You can use xdmp:set-request-time-limit:

http://docs.marklogic.com/xdmp:set-request-time-limit

If you wanted it to do something based on user or role, you could have some 
code that runs at the beginning of each request to appropriately set the time 
limit based on who they are.  But the way I have typically seen this done is 
the opposite of what you are suggesting: people set the default-time-limit to a 
smallish number, set the max-time-limit to a large number, and then on 
long-running queries, use xdmp:set-request-time-limit to raise the limit for 
that request.  Possibly have the application catch time limit exceeded messages 
in a friendly way if you think people will run into this.

Also, you can set this on each App Server, so if all you are interested in is 
the Admin Interface, then you can just set that to a big limit (as the admin 
role is required to log into the Admin Interface).

-Danny

From: [email protected] 
[mailto:[email protected]] On Behalf Of Sergio Restrepo
Sent: Monday, August 26, 2013 10:04 AM
To: [email protected]
Subject: [MarkLogic Dev General] Individual session timeouts

Hello list,

I have an application running in an HTTP App server and it is configured to use 
application security. I have set the session expiration for users to 24 hours 
using the admin console. I was wondering if there is a way to set different 
session time out lengths by user or role.

Thanks,

Sergio Restrepo | VP, Architecture | Yuxi Pacific Group
Office: +1 (786) 623 5517
Mobile: +1 (484) 598 3729
Skype: yuxi-sergio
http://www.yuxipacific.com/

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to