Home : Visit Our Store : Latest Specials : Recommend Us
Contact Us :
Support Forum : Multiple Domain Discount
 
Perl Cookie Retrieval
Go to www.cgiscript.net for more free tools!

Description:
Use this code to populate an associative array with the users cookies.
Directions:
Follow Steps 1 and 2 below. Use the 'Grab Text' buttons to select the code within the adjacent textarea. Then use Control-C or Edit -> Copy to buffer the text for pasting into your document.

Usage (Step 1): Add this code to retrieve the cookies. After the subroutine is run, all the user's available cookies will populate the %cookie associate array. For example, if the cookie 'name=john' is set, then the variable $cookie{'name'} will be available and it will be equal to 'john'.

Then use Control-C to copy the text into your web page.

Code (Step 2): Add the following code somewhere within your script.

Then use Control-C to copy the text into your web page.


Home
| Recommend Us | Contact Us
Copyright ©  WWW.CGISCRIPT.NET, LLC.