CGI::Session::ID::static - CGI::Session ID Driver for generating static IDs
| Use Case | Command | Description |
|---|---|---|
| π Generate static session ID | CGI::Session->new('driver:mysql;id:static', $id, { Handle => $dbh }) |
Creates a session with a static ID; the ID is provided by the caller. |
| β Provide ID required | CGI::Session->new('driver:mysql;id:static', $id, \%options) |
This driver demands a nonβundefined ID; if omitted it will croak. |
use CGI::Session;
$session = CGI::Session->new( 'driver:mysql;id:static', $ENV{REMOTE_ADDR}, { Handle => $dbh } );
CGI::Session::ID::static is used to generate consistent, static session ID's. In other words, you tell CGI::Session ID you want to use, and it will honor it.
Unlike the other ID drivers, this one requires that you provide an ID when creating the session object; if you pass it an undefined value, it will croak.
Copyright (C) 2002 Adam Jacob <adam AT sysadminsith.org>,
This library is free software. You can modify and distribute it under the same terms as Perl itself.
Adam Jacob <adam AT sysadminsith.org>,
For additional support and licensing see CGI::Session
perl v5.22.1 2016-01-15 CGI::Session::ID::static(3pm)
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-08 11:42 @216.73.216.150
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format