How to Make a Cookie Variable Equal a Value in Dreamweaver
Website cookies allow programmers to store values in small files on the user's computer. When you check the option to stay logged in on a website, the website programmer stores your login as a cookie. You can use Dreamweaver to set up a cookie and store a specific value in the cookie. Dreamweaver has a wizard that helps you store cookie values on your website.
Instructions
-
-
1
Open the Dreamweaver software from the "Adobe" program group in the Windows "Start" button. Open your Web project to view all the files for your website.
-
2
Double-click the file you want to use to store the cookie. Click the Dreamweaver "Insert" menu item and select "Script Objects." Click "Script" to open a wizard that helps you create the cookie code.
-
-
3
Click the "JavaScript" icon in the list of scripts, then click "Cookie." Click the "Properties" button to view a list of values for the cookie.
-
4
Type the value you want to use for the cookie, then click "OK." Click "OK" in the main "Script" wizard window. In the Dreamweaver designer click the "Code" tab to view the HTML code for the file. This window lets you review the results of your script insertion.
-
1