Published on InterSystems Developer Community (https://community.intersystems.com)

Home > how to set a expire time for a cookie?

Question
just fig · Nov 16, 2019

how to set a expire time for a cookie?

I try to set a cookie with expire time like this:   d %response.SetCookie("XXXXX",%session.SessionId, %session.AppTimeout,"","",0,0)  but when i return to the browser it shows that the cookie's("XXXXX") expire time is "session". How can i to set a expire time? Can someone help me? thxsmiley

#Caché

Source URL:https://community.intersystems.com/post/how-set-expire-time-cookie