This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:sidebar:remoteapi:apiref:core:duplicate [25/01/2013 14:02] zuve |
en:sidebar:remoteapi:apiref:core:duplicate [02/04/2013 09:21] zuve |
||
---|---|---|---|
Line 2: | Line 2: | ||
====== Operate As ====== | ====== Operate As ====== | ||
- | To login into the system from name of other user you need to execute command **core/duplicate**: | + | To login to the system on behalf of other user, you need to execute the command **core/duplicate**: |
<code javascript> | <code javascript> | ||
svc=core/duplicate¶ms={"operateAs":<text>, | svc=core/duplicate¶ms={"operateAs":<text>, | ||
- | "continueCurrentSession":<bool>} | + | "continueCurrentSession":<bool>, |
+ | "clientIp":<text>} | ||
</code> | </code> | ||
- | Duplicate session based on active (session duplicate). Both sessions should be initiated from the same IP. | + | It duplicates the active session. |
===== Parameters ===== | ===== Parameters ===== | ||
^ Name ^ Description ^ | ^ Name ^ Description ^ | ||
- | | operateAs | name of user, from wich name you want to do login (must be empty if you want to operate as main user) | | + | | operateAs | name of a user you want to operate as (must be empty if you want to operate as the main user) | |
- | | continueCurrentSession | should we continue previous session, by default false, if true - both sid stays valid | | + | | continueCurrentSession | defines whether to continue the previous session (false by default, if true - both //sid//'s remain valid) | |
+ | | clientIp | IP address for doubling session (optional parameter) | | ||
===== Response ===== | ===== Response ===== | ||
- | Format of response will be the same as in command [[login|login]]. | + | Response format is be the same as in the command [[login|login]]. |
|