use CGI::sesssion::File;
use CGI;
my $cgi = new CGI;
my $sid = $cgi->cookie(SESSION_COOKIE) || $cgi->param("sid") || undef;
//creating a new session
my $session = new CGI::Session::File(undef
{LockDirectory=>"//enter the path of database server",
Directory=>"//enter the path of database server"}) or die $CGI::Sessio
+n::errstr;
print "Your session id is ", $session->id();
// A cookie is being created which is then being send to the user brow
+ser
$cookie = $cgi->cookie(CGISESSID => $session->id );
print $cgi->header(-cookie=>$cookie);
$session->save_param($cgi, ["login_name", "password"]);
this is the script i have designed reading the doc what
i want to do is when ever a userlogs on through the html page i use my cgi script to get userdetails like logging time , logout time, username , password and store it in a database
please help me
|