View Full Version : Making cookies expire in ASP
Go Dot Yourself
June 15th, 2001, 22:47
Does anyone know how to create a cookie in ASP that will expire after a predetermined amount of hours?
ashben
June 16th, 2001, 11:57
Response.Cookies(CookieName) = "AnyValue"
Response.Cookies(CookieName).Expires=DateAdd("h",NumberOfHours,Now)
More: http://www.devguru.com/Technologies/asp/quickref/response_cookies.html
Go Dot Yourself
June 16th, 2001, 17:52
Thanks! Just what i was looking for!
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.