---
title: createSessionId
---

# createSessionId

<a href="https://github.com/remix-run/remix/blob/remix@3.0.0-alpha.6/packages/session/src/lib/session.ts#L197" target="_blank">View Source</a>

## Summary

Create a new cryptographically secure session ID.

## Signature

```ts
function createSessionId(): string;

```

## Returns

A new session ID