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

📛 NAME

CGI::Session::ID::static - CGI::Session ID Driver for generating static IDs

🚀 Quick Reference

Use CaseCommandDescription
Create session with static ID (using driver:mysql)CGI::Session->new('driver:mysql;id:static', $ENV{REMOTE_ADDR}, { Handle => $dbh })Creates a session with a static ID based on the remote address; ID is required.
Create session with static ID (using driver:file)CGI::Session->new('driver:file;id:static', $custom_id)Uses a provided custom ID (must be defined).
Error on undefined IDCGI::Session->new('driver:file;id:static', undef)Croaks if ID is undefined; static driver requires an explicit ID.

📋 SYNOPSIS

use CGI::Session;
$session = CGI::Session->new( 'driver:mysql;id:static', $ENV{REMOTE_ADDR}, { Handle => $dbh } );

📝 DESCRIPTION

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

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.

👤 AUTHORS

Adam Jacob <adam AT sysadminsith.org>,

📜 LICENSING

For additional support and licensing see CGI::Session

CGI::Session::ID::static
📛 NAME 🚀 Quick Reference 📋 SYNOPSIS 📝 DESCRIPTION ÂŠī¸ COPYRIGHT 👤 AUTHORS 📜 LICENSING

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-08 10:33 @216.73.216.131
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format