Skip to content

Commit ebbdf88

Browse files
authored
docs: Add docs for resetSessionid (#454)
* docs: Add docs for resetSessionid * typo
1 parent 74fed0a commit ebbdf88

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/amplitude-client.js

+5
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,11 @@ AmplitudeClient.prototype.setSessionId = function setSessionId(sessionId) {
969969
}
970970
};
971971

972+
/**
973+
* Sets the current Unix timestamp as the new Session ID for the instance.
974+
* @public
975+
* @example amplitudeClient.resetSessionId();
976+
*/
972977
AmplitudeClient.prototype.resetSessionId = function resetSessionId() {
973978
this.setSessionId(new Date().getTime());
974979
};

0 commit comments

Comments
 (0)