# Session URL Retrieval

The `getCurrentSessionURL` function lets you capture a shareable link to the current Zipy session. By default, it returns the standard session URL. You can also include a timestamp, which links directly to the exact moment in the session when the function was called.

**Note:** If you don’t pass any option, `withCurrentTimestamp` defaults to `false` (regular session URL).

***

#### Using NPM

```javascript
// 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

<pre class="language-html"><code class="lang-html">&#x3C;script>
<strong>  // Regular session URL
</strong>  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);
&#x3C;/script>
</code></pre>

✨ **Tip:** Use the timestamp option when you want to share the *exact activity point* in a session with your team.
