- or download this
require "Sessions/mysql_session_handler.php"; // more on this later
- or download this
session_start();
- or download this
$session = array();
session_register("session");
- or download this
use CGI;
use Apache::Session::MySQL;
- or download this
my $q = new CGI;
my $sess_id = $q->cookie(-name=>'sess_id');
- or download this
tie my %session, "Apache::Session::MySQL", $sess_id, {
DataSource => 'dbi:mysql:sessions',
...
LockUserName => 'root',
LockPassword => ''
};
- or download this
my $cookie = $q->cookie(-name=>'sess_id',-value=>$session{'_session_id
+'});
print $q->header(-cookie=>$cookie);
- or download this
tied(%session)->delete;
- or download this
$session['_session_id'] = session_id();
- or download this
<?
...
'mysql_session_gc' );
?>
- or download this
#!/usr/bin/perl -w
...
$sel->finish;
$db->disconnect;
- or download this
#!/usr/bin/perl -w
...
$db->disconnect;
print "1";
- or download this
<?
...
?>
- or download this
!/usr/bin/perl -w
...
print "What is your username? <INPUT TYPE=TEXT NAME=\"username
+\">";
print "<INPUT TYPE=SUBMIT></FORM>";
}