This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
en:sidebar:remoteapi:apiref:core:duplicate [02/04/2013 09:21] zuve |
en:sidebar:remoteapi:apiref:core:duplicate [29/11/2013 13:31] 127.0.0.1 external edit |
||
---|---|---|---|
Line 5: | Line 5: | ||
<code javascript> | <code javascript> | ||
svc=core/duplicate¶ms={"operateAs":<text>, | svc=core/duplicate¶ms={"operateAs":<text>, | ||
- | "continueCurrentSession":<bool>, | + | "continueCurrentSession":<bool>} |
- | "clientIp":<text>} | + | |
</code> | </code> | ||
It duplicates the active session. | It duplicates the active session. | ||
Line 14: | Line 13: | ||
| operateAs | name of a user you want to operate as (must be empty if you want to operate as the 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 | defines whether to continue the previous session (false by default, if true - both //sid//'s remain 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 ===== | ||
Response format is be the same as in the command [[login|login]]. | Response format is be the same as in the command [[login|login]]. |
|