This e-mail is intended solely for the addressee. If you are not the
intended recipient of this message, you must not read, use or
disseminate the information.
******************************** NOTE *******************************
I'm not sure I really understand what you want to do, but here's a
quick thought: if you have the concept of a "logon" process, you may
create a "Logon" servlet that automatically creates a cookie with
whatever default value you want and adds it to the response object for
that session. This way every user who comes in through the "Logon"
servlet will get the default cookie. You can have the cookie expire
at the end of the browser session (that's the default), or you can set
it's expiration date (with cookie.setMaxAge(seconds) method), thus
making it a somewhat persistent cookie. From here on, any subsequent
servlets could check the cookie and act accordingly. I would
recommend that you check the "session" posibility, where you can store
Java objects in a session object that gets passed along between
servlets, thus making communication between servlets pretty easy.
Rob Jago <[EMAIL PROTECTED]> on 03/05/99 07:51:26 AM
Please respond to "A mailing list for discussion about Sun
Microsystem's Java Servlet API Technology."
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:
Subject: default cookie on NT box
Hello
I was wondering if anyone has dealt with or knows where I can
find
the information for the following.
Our web application , using java, servlets, and JSP would
like
to store a cookie on a NT machine which uses IE. I believe that the
cookie
is stored on a per (logged in ) user to the NT machine. Is it
possible to
put a default cookie value in the ALL USERS profile so that every
logged
in user will get the same information based on the data in the cookie
and
how does this apply to the coding of the cookie putting of the
servlets?
any help, comments, or directions would be muchly appreciated?
Rob Jago
Programmer Analyst
Ottawa
___________________________________________________________________________
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
___________________________________________________________________________
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