Session URL Retrieval
Retrieve and utilize the current session URL dynamically with Zipy's getCurrentSessionUrl function.
Using NPM
// Regular session URL
const url = zipy.getCurrentSessionURL();
console.log('Session URL:', url);
// Session URL with timestamp
const urlWithTime = zipy.getCurrentSessionURL({ withCurrentTimestamp: true });
console.log('Session URL with timestamp:', urlWithTime);Using Script Tag
<script>
// Regular session URL
const url = window.zipy.getCurrentSessionURL();
console.log('Session URL:', url);
// Session URL with timestamp
const urlWithTime = window.zipy.getCurrentSessionURL({ withCurrentTimestamp: true });
console.log('Session URL with timestamp:', urlWithTime);
</script>Last updated