Print Page | Close Window

Theme maker

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=7283
Printed Date: 31 March 2026 at 3:06pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Theme maker
Posted By: Aritimi
Subject: Theme maker
Date Posted: 14 November 2003 at 7:24pm

I own a personal website that uses asp scripts to run various parts of it.  One of the things I'd like to do is create themes or "skins" for my website.  But for the love of my I can't seem to figure out cookies and how they work.  I'm extremely new at actually writing asp lines other than includes.  Could someone please help me?

(Also I've found a few tutorials that say you have to use a form, is this necissary? I'd like to have it so my visitors just click and image and it changes the coding.)

Thanks in andvaced for any help you can give me.




Replies:
Posted By: FLATLINE
Date Posted: 15 November 2003 at 7:32am

Cookies in ASP is pretty simple.

You write to a cookie like this:
Response.Cookies("cookie_name") = "value"

You read a cookie like this:
SomeVariable = Request.Cookies("cookie_name")

You can define a cookie's expiration date like this:
Response.Cookies("cookie_name").Expires = SomeDateVariable

You may also use cookies as arrays, like this:
Response.Cookies("cookie_name")("sub_name") = "value"
or
SomeVariable = Request.Cookies("cookie_name")("sub_name")



-------------
Visit my site: http://darkgreen.service-club.net - DarkGreen HQ



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net