in reply to cgi programming

You should, of course, be using CGI for your basic CGI needs, and for session management, CGI::Session. No need to roll your own. Enjoy the read!

Update:
Now I see that you already got this answer in your earlier thread: session variables. Be sure to read the documentation for CGI::Session.


Dave

Replies are listed 'Best First'.
Re^2: cgi programming
by rjsaulakh (Beadle) on May 26, 2005 at 14:48 UTC
    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