# perldoc > CGI::Session::ID::static

---
type: CommandReference
command: CGI::Session::ID::static
mode: perldoc
section: 
source: perldoc
---

## Quick Reference
- `CGI::Session->new('driver:mysql;id:static', $id, { Handle => $dbh })` — Create session with a static ID
- `CGI::Session->new('id:static', $ENV{REMOTE_ADDR})` — Use remote address as the static ID

## Name
CGI::Session::ID::static — CGI::Session ID Driver for generating static IDs

## Synopsis
perl
use CGI::Session;
$session = CGI::Session->new( 'driver:mysql;id:static', $ENV{REMOTE_ADDR}, { Handle => $dbh } );
## Description
Generates consistent, static session IDs. The ID must be provided when creating the session object; passing an undefined value will cause a fatal error (`croak`). Unlike other ID drivers, this one does not generate IDs automatically.

## See Also
- [CGI::Session](http://localhost/phpMan.php/perldoc/CGI%3A%3ASession/markdown)