Help for this page

Select Code to Download


  1. or download this
    if (($user)&&($passcheck)) {
            # create a MD5 hash for session management
    ...
    
            print $q->header(-cookie=>[$cookie]); # cookie set
    
  2. or download this
    sub get_timestamp {
    
        (my $year, my $month, my $day, my $hour, my $min, my $sec) = Today
    +_and_Now();
    ...
        return ($now_ts, $expiration);
    }
    
  3. or download this
    my $time_frame = substr ($meta_configs{login_cookie_expiration},-1,1);