take


Description:

public static Session? take (string id)

Look up id, or allocate a new session when id is empty. Purges idle sessions first; touches last_used on success.

Parameters:

id

client X-rpc-session value, or empty to create

Returns:

session, or null when id is non-empty and unknown/expired