On Wed, Jan 04, 2006 at 03:33:36PM -0500, [EMAIL PROTECTED] wrote: > When the client refreshes, they are still redirected to the cgi, though > they can load any other pages properly. The only reason I can find for > this is the state that was created by the initial rdr (see below).
Make sure you add the client address to the table BEFORE you send back the document containing the META_REFRESH. As soon as the address has been added to the table, all NEW connections will not be redirected. One explanation would be that the client is using a persistent connection to the web server, i.e. it's not closing the connection after it has gotten your document, but sends subsequent HTTP requests over that same initial connection (it's not aware of the redirection at all, and thinks it's talking to one and the same server). You should be able to confirm this theory by either tcpdump'ing all traffic from the client (looking for establishment, or lack thereof, of a second connection after the META_REFERSH is followed), or using pfctl -vvss, which should print a new, non-redirected state, if there is such a new connection. If this indeed the problem, you can force the client to abandon the first persistent connection by supplying a HTTP header from the CGI, see Persistent Connections and the "Connection: close" Header http://www.jmarshall.com/easy/http/#http1.1c3 I doubt this is in any way related to state timeouts, but I could be wrong ;) Daniel