HTML Cookie

Discuss all aspects of programming here.

Moderator: The Mod Squad

HTML Cookie

Postby kevinloh » Tue Aug 25, 2009 7:01 am

I am currently displaying a disclaimer on my website landing page (index.html= and I want to create a checkbox with Do not show this disclaimer again using cookies. So that if the same person accesses the mail landing page (index.html) it will skip the disclaimer in index.html and perhaps goto a new webpage index2.html.

Could anyone here give me a sample code for it.
GIGABYTE GA-X79-UD3
Intel 3930K 3.20Ghz O/C to 4.0GHz
PHANTEKS PH-TC14PE CPU Cooler
16GB CORSAIR DDR3-2133 LP
SAMSUNG 830 256GB SSD SATA3
12TB HDD Drives
EVGA Nvidia 2GB GTX680 Superclocked Signature 2
CORSAIR AX1200W PSU
Sharkoon T28 Green Edition Case
DELL 22 Widescreen LCD Monitor E228WFP
kevinloh
Anti-Static Strap
Anti-Static Strap
 
Posts: 449
Joined: Sat Feb 08, 2003 2:41 am
Location: Bru 4 30 N, 114 40 E

Postby Toby B. » Thu Aug 27, 2009 8:49 am

I'm starting to say this a lot, but cookies cannot be done simply through HTML. Cookies are done at the server level. You must actually place a CGI application that records, reads, and places cookies for you.


http://www.htmlgoodies.com/beyond/refer ... hp/3472661

The page mentions cgi, but these days its gonna be more along the lines of php or javscript..
Toby B.
Lead Mobo-fu Master
Lead Mobo-fu Master
 
Posts: 14277
Joined: Sun Dec 16, 2001 1:01 am
Location: Maine


Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron