Overview | IndexGodLikeMouse JavaScript Framework
FRAMES | NO FRAMES

GLM.DOM.Cookie.setExpiration( expirationDate )

GLM.DOM.Cookie.setExpiration( expirationDate )

Method for setting the expiration date of a cookie.

Parameters:

expirationDate - The Date object expiration

Example:

var cookie = new GLM.DOM.Cookie("mycookie");
cookie.setValue("firstvalue","hello world"); //set firstvalue name to "hello world"
cookie.setExpiration( new Date() ); //sets the expiration to now



Overview | IndexGodLikeMouse JavaScript Framework
FRAMES | NO FRAMES