Re: Secure jsessionid cookie : request.scheme==https versus request.secure == true

2009-06-23 Thread Cyrille Le Clerc
approach that > > is to do pattern matching (10.*) on request.remoteAddr to flag > > RequestFacade.secure=true if the requests come from my secured network > > area. This will let request.secure=false if request.scheme=http and > > thus have non-secure JSESSIONID cookies. > &g

Re: Secure jsessionid cookie : request.scheme==https versus request.secure == true

2009-06-23 Thread Mark Thomas
learly. > If all this is to complex, I will fall back to another approach that > is to do pattern matching (10.*) on request.remoteAddr to flag > RequestFacade.secure=true if the requests come from my secured network > area. This will let request.secure=false if request.scheme=http and

Re: Secure jsessionid cookie : request.scheme==https versus request.secure == true

2009-06-22 Thread Cyrille Le Clerc
ecure=false if request.scheme=http and thus have non-secure JSESSIONID cookies. I tested with a valve called SecuredRemoteAddressesValve (1) that I precede of RemoteIpValve (2) to process the x-forwarded-for header to find the real remoteAddr and this works fine. Thanks very much for your help, Cyrille (1)

Re: Secure jsessionid cookie : request.scheme==https versus request.secure == true

2009-06-22 Thread Mark Thomas
>> (non-secure) HTTP connector and still set scheme=https. Do you have some >> portion of your application that relies on request.getScheme() returning >> "HTTP"? > > My application only checks request.secure=true. > > I would like Tomcat to create non-secu

Re: Secure jsessionid cookie : request.scheme==https versus request.secure == true

2009-06-22 Thread Cyrille Le Clerc
=https. Do you have some > portion of your application that relies on request.getScheme() returning > "HTTP"? My application only checks request.secure=true. I would like Tomcat to create non-secure JSESSIONID cookies (ie non-ssl cookies) on the connector with secure=true and s

Re: Secure jsessionid cookie : request.scheme==https versus request.secure == true

2009-06-22 Thread Christopher Schultz
still set scheme=https. Do you have some portion of your application that relies on request.getScheme() returning "HTTP"? > However, if request.secure=true, whatever is the value of > request.scheme, Tomcat generates a secure JSESSIONID cookie. My > problem is that most http clien

Re: Secure jsessionid cookie : request.scheme==https versus request.secure == true

2009-06-22 Thread Cyrille Le Clerc
ou have a reason to set request.secure=false while request.scheme=https? I may have not been clear. My need is the opposite : I want to have request.secure=true but request.scheme=http. However, if request.secure=true, whatever is the value of request.scheme, Tomcat generates a secure JSESSIONID

Re: Secure jsessionid cookie : request.scheme==https versus request.secure == true

2009-06-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Cyrille, On 6/21/2009 6:52 AM, Cyrille Le Clerc wrote: >I am interested in using the "secure" attribute of Tomcat > connectors for non https/ssl requests. However, the "ssl only" > JSESSIONID cookie mechanism currently relies on "request.secure ==

Re: Secure jsessionid cookie : request.scheme==https versus request.secure == true

2009-06-22 Thread Cyrille Le Clerc
Hello, My usecase may have not been clear enough : The "internal over http connector : secure = true, scheme = http" doesn't behave has I would like for stateful requests because Tomcat generates a secure JSESSIONID cookie even if the configured scheme is "http" rather t

Secure jsessionid cookie : request.scheme==https versus request.secure == true

2009-06-21 Thread Cyrille Le Clerc
Hello, I am interested in using the "secure" attribute of Tomcat connectors for non https/ssl requests. However, the "ssl only" JSESSIONID cookie mechanism currently relies on "request.secure == true" rather than on "request.scheme == https" (1). A confusion on "secure vs. https" seems to co

Re: secure JSessionID

2008-01-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 GF, GF wrote: |> I believe if your session starts through HTTPS, the cookie will be |> marked as secure and it won't be sent if the user switches to non-secure |> HTTP. | | Maybe my question is stupid, but, is it possible to browse a site on | HTTP a

Re: secure JSessionID

2008-01-16 Thread GF
> I believe if your session starts through HTTPS, the cookie will be > marked as secure and it won't be sent if the user switches to non-secure > HTTP. Maybe my question is stupid, but, is it possible to browse a site on HTTP and having just the JSESSIONID cookie sent on HTTPS to prevent session s

Re: secure JSessionID

2008-01-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 GF, GF wrote: | can you give me a link about setting up a secure JSessionID cookie? I | mean to let it pass over HTTPS and not HTTP. I believe if your session starts through HTTPS, the cookie will be marked as secure and it won't be sent i

secure JSessionID

2008-01-14 Thread GF
Hello, can you give me a link about setting up a secure JSessionID cookie? I mean to let it pass over HTTPS and not HTTP. Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED