<%doc> Cookie Checker: Author: Hugh J Baker Use: 1)Checks If Users Browser is set to accept cookies. 2)Then displays Instructions on how to config browser to accept cookies if not set. <%args> $c => 'default' <%shared> my $cookieName = 'x_invoice_num'; #default cookie name my $domainName = '.chaliceart.com'; #default domain name my $cookieValue = '1'; #default cookie value my $cookieExpires = '+5h'; my $HomeUlr = 'http://www.chaliceart.com/'; #default home url <%init> use Data::Dumper; use Apache::Cookie; <&$c&> <%def meta_refresh> <%init> my $refresh_url = $ARGS{url} || $HomeUlr; my $refresh = $ARGS{refresh} || '3'; <%def default> %#<&meta_refresh&>
You are not authorized to access this page.
Your browser will be redirected to the home page in 3 seconds.
<%def bake_cookie> <%init> my $cookie = Apache::Cookie->new( $r, -name => $cookieName, -value => $cookieValue, -expires => $cookieExpires, -domain => $domainName, -path => '/', ); $cookie->bake; $m->redirect("?c=check_cookie"); <%doc> <&meta_refresh, url => 'http://www.chaliceart.com/cookie.htm?c=check_cookie', refresh => '0'&> <%def check_cookie> <%init> my %cookies = Apache::Cookie->fetch(); my $cookie = $cookies{$cookieName}; if($cookie){ $m->comp('cookie'); }else{ $m->comp('no_cookie'); } <%def cookie> <%init> $m->redirect("/"); <%def no_cookie>

This site requires cookies to be set in your web browser for the shopping cart to function properly.

How to set Cookie Permissions

Click on the tools menu.

Select Internet Options.

Then click on the privacy tab.

And adjust the slide bar. Medium High should be sufficient.

Netscape and Fire Fox:
Click on the tools menu. Select Options.

Then click on the privacy tab.

Scroll down to Cookies. Check allow sites to set cookies

If this does not work you may be behind a firewall. You will have to configure the firewall to accept cookies.

To return to Home Click Here