Christoph Zwerschke wrote on 5/24/07 3:04 AM:
> Ben Parker wrote:
>   
>> Example of the problem:
>>
>> url submitted by the browser: http://mydomain.com/es/path/to/servlet
>> url after modification by mod_rewrite: http://mydomain.com/path/to/servlet
>>
>> REQUEST_URI value : /es/path/to/servlet
>> PATH_INFO value: /path/to/servlet
>> SCRIPT_URL value: /path/to/servlet
>>
>> the _servletPath is: /es
>>     
>  >
>   
>> This means that cookies are written to the path of "/es/" rather than 
>> the path of "/" which causes users to think their session has been lost. 
>>     
>
> But isn't that the correct _servletPath? Why should the cookies be lost? 
> The browser uses the url starting with /es/, so this should be just the 
> right cookie path for your application.
>   
We're trying to do something sneaky and have the language code be the 
first element in the URL, which Apache strips out and sends through to 
Webware as a CGI environment variable. That was for search engines to 
see the language code as the first element in the URL, rather than at 
the end of the URL in an extra path field of query parameter. We want 
Webware to set the cookie using "/" as the root path.

I may need to do a more in depth review of the use of _servletPath 
within Webware before I can argue it more effectively.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to