Forum OpenACS Q&A: Response to users having trouble registering
I think this is by design. Otherwise you couldn't run servers on non-standard ports and have a login on the http side be recognized by the https side.
There is some discussion about this in Bugzilla for Mozilla--I started to report the opposite behavior as a bug in Mozilla (the cookie spec says the port number should be left off when comparing hosts).
See the Bugzilla page for bug #142803
It looks like they might be leaning toward leaving the existing behavior in--that concerns me because it means that users of Mozilla trying to login to OpenACS sites that run on nonstandard ports and restrict login to SSL will not be able to login. They will reach the SSL page and login, but the cookie will be set for the SSL side. Returning to the non-SSL side will cause them to not be logged in anymore.