# io.github.libtmux.SessionLookup.named

- **Module:** io.github.libtmux
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/c067fced0dfd19bd6dd3d260e9d4c336becdb063/libtmux/src/main/java/io/github/libtmux/SessionLookup.java#L19
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-sessionlookup-sessionlookup-named/

```
static Optional<SessionId> named(Server server, String name)
```

The id of the session tmux keeps under this name, read from one listing.

Not a {@code -t =name} target: tmux reads {@code .} and {@code :} in a target as window and
pane separators, and it may have stored the name differently from how it was given.

## Parameters

- `server` (`Server`)
- `name` (`String`)
