tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Sexton" <gsex...@mhsoftware.com>
Subject RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)
Date Wed, 15 Feb 2006 19:24:38 GMT
In my shopping cart application, I create a cart with a unique (random) id
and track the request type (secure/non-secure). 

If they invoke the program from an SSL request, and the previous request was
non-SSL then I create a new cart with a new unique ID, copy the information
from the insecure cart, and then delete the old cart.

If someone tries to come back with the old cart id, then that cart just
doesn't exist and they get a new cart.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

> -----Original Message-----
> From: Joey Geiger [mailto:joey@staff.onmilwaukee.com] 
> Sent: Wednesday, February 15, 2006 11:50 AM
> To: 'Tomcat Users List'
> Subject: RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)
> 
> >>You do realize that sessions don't carry over between SSL 
> and non-SSL
> >>request don't you?
> 
> What is the proper/best way to go about this then, since I 
> will be facing a
> similar situation in the near future? (Shopping cart bean, 
> customer bean
> saved in the session.)
> 
> Thanks.
> 
> 
> -----Original Message-----
> From: George Sexton [mailto:gsexton@mhsoftware.com] 
> Sent: Wednesday, February 15, 2006 12:17 PM
> To: 'Tomcat Users List'; mao@simplexsoftware.com; 
> edyke@vrs.state.va.us;
> alexandre.tastet@fr.fortisbank.com
> Subject: RE: Session Expires At Every Request (Tomcat5.0.28/Firefox)
> 
> You do realize that sessions don't carry over between SSL and non-SSL
> request don't you?
> 
> You can't have a session ID that carries over from a non-ssl 
> session to an
> SSL session because that session ID is compromised (it has 
> been exposed) as
> plain text.
> 
> As an aside, I looked at your form. You should really use
> HttpServletRequest.getLocale() to pick up your user's locale and then
> provide date formatting for the user locale.
> 
> George Sexton
> MH Software, Inc.
> http://www.mhsoftware.com/
> Voice: 303 438 9585
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message