CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...: Re: [kidd] Cookies 2: Edit Log



Paul
Enthusiast

Mar 1, 2002, 2:58 AM


Views: 4309
Re: [kidd] Cookies 2

[perl]

use CGI qw(:standard);

my $times = cookie('Cookie_Name') || 0;

$times > 5 ? redirect('some_url') : set_cookie();

[/perl]

Im assuming you know how to set a cookie?


(This post was edited by RedRum on Mar 1, 2002, 2:59 AM)


Edit Log:
Post edited by Paul (Enthusiast) on Mar 1, 2002, 2:59 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives