Refreshing an ICAT session

5 views
Skip to first unread message

Steve Fisher

unread,
Dec 18, 2012, 6:56:08 AM12/18/12
to icat-de...@googlegroups.com
Hi,

I have the problem of ICAT sessions timing out in long running programs. I propose to add a call to icat to refresh the session. This will simply update the termination time of the session so that a new sessionId will not be needed. The duration of the sessions will be as currently defined in the icat.properties file. I propose that the signature of the call (for Java) should be "void refresh(String sessionId)". This is easier to use than getting a new sessionId and avoids having to store credentials.

What do you think?

Steve

alistai...@stfc.ac.uk

unread,
Dec 18, 2012, 9:40:17 AM12/18/12
to icat-de...@googlegroups.com, alistai...@stfc.ac.uk

Steve

 

Could you not apply your object orientated ideas to the sessionId and to and use an update method on it?

 

Alistair

Steve Fisher

unread,
Dec 18, 2012, 10:30:34 AM12/18/12
to icat-de...@googlegroups.com, Alistair Mills
Alastair,

A sessionId is just a string. You need to update the entry in the Session table.

Steve


tom.g...@stfc.ac.uk

unread,
Jan 3, 2013, 11:03:14 AM1/3/13
to icat-de...@googlegroups.com

Hi Steve,

I support this idea.

I prefer it to automatic session extension after every API call.

Best,
Tom


--
Scanned by iCritical.


Reply all
Reply to author
Forward
0 new messages