# Object initialization:
use CGI::Session;
$session = CGI::Session->new();
$CGISESSID = $session->id();
# Send proper HTTP header with cookies:
print $session->header();
# Storing data in the session:
$session->param('User_id', 'U00002');
This script is written in some file say abc.pl.
Now I want access the User_id in some other perl file, say xyz.pl.
How to do that?
Do I need to make any change in this script?
Pass the id to where it’s needed.