> We wish to implement domain level cookies, but are running
> into a problem. The web servers in question are accessible
> via an intranet, with clients that have domain name
> completion configured. So quote often, a user will simply
> type "hostname" in the address window, rather than
> "hostname.domain.com". When this happens, the server does
> not recognize that the short hostname is part of the domain
> that I have specified in the cookie tag.
>
> Any ideas how to resolve this problem?
You could use an ugly workaround. Check CGI.SERVER_NAME or CGI.HTTP_HOST; if
it's not the complete string, do a redirect to the full URL. I haven't tried
it, but it should work.
As for the cause of the problem, I don't think it's that the server doesn't
recognize that the short hostname is part of the domain, but rather that the
browser doesn't recognize that the server is within the same domain when
forming the HTTP request.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]