Revision 607 (by ahitrov, 2016/10/28 20:56:45) Order by section switch on-off.
Administrative panel content maximizing.

<%args>
	$name
	$value => undef
	$expires => undef
</%args>
<%init>

    if (defined $value) {
	my $cookie = Apache::Cookie->new( $request->r(),
			-name 	=> $name,
			-value 	=> $value,
			defined $expires ? (-expires => $expires) : (),
			-secure => 0,
		);
	$cookie->bake();
    } else {
	my %cookies = Apache::Cookie->fetch;
	my $value = $cookies{$name}->value()	if exists $cookies{$name} && $cookies{$name};
	return $value;
    }

</%init>