Firefox is happy to handle cookies for me locally, so I don't think that is the issue.
Two possibilities:
1. multiple cookies It is possible that you have more than one local cookie in the Firefox cookies cache.
acgiss.r only handles the simple Type 1 cookie, so sending it multiple cookies means it can't find any.
This seems unlikely unless you are testing different applications locally; and. anyway, you cleared the cache.
2. misplaced save-sessionThe save-session is what sends the cookie to the output stream (and thus gets it to the web browse).
HTTP rules say that must happen before you print any HTML. If the cookie is written later, it is seen as part of your HTML data.
This code works for me under Firefox:
#!shebang here
rebol[]
print "Content-type: text/html^/"
SESSION-RECORD: acgiss/get-session-record ;; retrieve session data
acgiss/save-session SESSION-RECORD ;; save the data
print <h1>
print "test acgiss.r"
print </h1>
either SESSION-RECORD/session-status = "new" [
print ["<h2> New </h2>"]
][
print ["<h2> OLD </h2>"]
]
print <pre>
print mold session-record
print </pre>
quit
Note the save-session happens before the first print of HTML content.
If that causes some awkwardness in your application, you can do multiple save-sessions: only the first in a session will write the cookie.