Tuto WEBDEV 25
Part 7: Specific Web features 289 Practical example ▶ To check the management of cookies, we are going to import the unit example named "The cookies" into the "Full_WEBDEV_Site" project. 1. Display the WEBDEV home page (Ctrl + <). 2. In the home page, click "Tutorial" and select "Full WEBDEV Site (Answer)". ▶ To open a unit example: 1. Display the WEBDEV home page (Ctrl + <). 2. Click "Open an example". 3. In the search control, type "Cookies". The unit example named "The Cookies" appears in the window. 4. Click the name of unit example. 5. The page corresponding to the unit example is displayed in the editor. 6. Save the page. How to use the cookies? Cookies can be used according to two different modes: • Cookies used in Server code. • Cookies used in Browser code. To use cookies, WEBDEV includes 2 functions that can be used both in server code and in browser code: • CookieWrite : is used to send a cookie when displaying the HTML page in the browser of Web user. • CookieRead : is used to retrieve the value of a cookie saved on the computer of Web user. The "PAGE_Cookies" example page presents an example for reading and writing a cookie in server code and in browser code. See the online help for more details.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==