[AWS] AWS 2.8.0w, sessions and Opera

Thomas Løcke thomas.granvej6 at gmail.com
Thu May 27 09:42:52 CEST 2010


On Thu, May 27, 2010 at 7:34 AM, Pascal Obry <pascal.obry at gmail.com> wrote:
> Thomas,
>
> This is really strange! The AWS session is based on cookie, are you sure
> cookies are accepted by the Opera Web browser by default? Maybe a
> preference? If not, it would be nice to see if the Opera is properly
> sending back the cookie... You could display all the header received by
> AWS (see AWS.Net.Log to activate the corresponding logs).
>
> Pascal.


This is very embarrassing. It turns out that the root of the problem
were a renegade resource handler. Or rather; a very poorly written
regex.

The "bug" only happened on Opera, because apparently Opera requests a
file called favicon.ico _every_ time it looks up an URL. These
requests were being handled by this:

AWS.Services.Dispatchers.URI.Register_Regexp
        (Dispatcher  => Handler,
         URI         => "[^status].*",
         Action      => View.Default.Generate'Access);

And yes, the View.Default.Generate function does indeed do sessions.
So whenever Opera requested a resource on the server, the server
responded twice: 1st. for the actual resource and 2nd. for the
favicon.ico request.

I've now setup a handler specifically for .ico files, and I intend to
make some changes to the above regex.

:o)
Thomas Løcke


More information about the AWS mailing list