Help for this page

Select Code to Download


  1. or download this
    SET FOREIGN_KEY_CHECKS=0;
    #----------------------------
    ...
      `a_session` text NOT NULL,
      UNIQUE KEY `id` (`id`)
    ) TYPE=MyISAM;
    
  2. or download this
    my $config = {    DSN            => 'DBI:mysql:session',
                    MySQLunm    => 'ipsofalco',
    ...
    
    # Set cookie with new expire time
    my $cookie = $q->cookie(-name=>'CGISESSID', -value=>$session->id, -exp
    +ires=>'+1d');
    
  3. or download this
    sub addItemCart {
        my ($cgi, $session, $orderitem) = @_;
    ...
        $session->flush();
        return displayCart($cgi, $session);
    }
    
  4. or download this
    sub clrCart {
        my ($cgi, $session) = @_;
    ...
        $session->flush();
        return &displayCart($cgi, $session);
    }