Consultor Eletrônico



Kbase P113998: How cookie's expiration time is set?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   06/03/2006
Status: Unverified

GOAL:

How cookie's expiration time is set?

GOAL:

Can you use time function to set Cookie's expiration time?

FIX:

The application can set the cookie's expiration time to whatever using set-cookie dunction. If the program uses the 'time' function to set expiration time it will default to the time on agent's machine.
Expiration of the cookie will be determined by the machine time of the user running the browser. Therefore, it is not advisable to use time function to set expiration of cookies. Rather call set-cookie with a set period of time.