Hi,

I'm currently developing a small shopping site with Servlets and JSPs
and I'm having some trouble storing info in a user's cookie when s/he is
using Internet Exporer. Everything works great when I try with Opera (my
primary browser).

I have a Java class called 'ShoppingCart' which contains misc. info
about what the user has in her shopping cart. I store this object in the
user's "session" like this.

// cart is an instance of the ShoppingCart class
request.getSession().setAttribute("cart", cart);

Similary, I also have class called 'User' which contains info about the
user if s/he is logged in. It is stored like this (when the user loggs
in):

// user is an instance of the User class
request.getSession().setAttribute("user", user);

Which makes it easy for me to check whether the user is logged in or
not; just check if the session attribute "user" is null or not.

The above works as I said earlier great when I use Opera, however, when
I try with Internet Explorer 6.0 (not sure with previous versions) my
cookie gets blocked by the browser with the following message
(translated by me to English, may not be correctly worded):

"No secrecy policy was fround for <url>. Contact the web site directly
if you want to see the site's secrecy policy".

I have never run into something like the before. Any help I can get will
be appreciated. I'm running the latest stable release of Resin.

Thanks,

[ Matthias Carlsson ]
[ KTH: D-01 ] [ Programmer (Java) ] [ Web Designer ]
[ [EMAIL PROTECTED] ] [ Mob#: 073-9287309 ] [ ICQ: 1430647 ]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to