Hi Agustin:
I've tested with oacs-5-2 and safari and results are:
non-persistent login: can't login
persistent login: can login but can't logout
The language of the machine where my server is, is french; I guess yours is spanish. The content of the set-cookie header is:
ad_user_login=494%.....; Path=/; Expires=Mon, 01-Jan-2035 01:00:00 GMT
ad_session_id=130.....; Path=/; Max-Age=1200; Expires=dim, 16-oct-2005 11:33:14 GMT
The difference is in the expires date format, for ad_session_id is in french. I hardcoded the expires date in ad_set_cookie using english ("Expires=Sun, 16-Oct-2005 ..." instead of "dim, 16-oct-2005") and I could login/logout normally.
The expire date is obtained with ns_time, so we have to reformat this date.