<%@Language=VBScript %> <% Option Explicit '******************************************* '* File: session_cookie_write.asp '* Author: Ian Martin '* Date: Jun 12 2006 '* Version: 1.0 '* Description: Sets a session cookie '* '******************************************* 'Set cookie - no expiry info so it's a session cookie Response.Cookies("userID")="Dave" %> Write Session Cookie

UserID cookie written with value <%= Request.Cookies("userID") %>.

Read & Display Cookie Contents