Would it not be :-
session.putValue("login.user", newuserid);
session.putValue("login.passwd", newpassword);
so that it overwrites the previous values of login.user and
login.passwd, assuming of course you put the values into the session
in the first place.
Although, this isn't completely related to cookies, but seems a lot
easier approach.
-----Original Message-----
From: Bilal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 26, 1999 9:08 AM
To: [EMAIL PROTECTED]
Subject: Modifying the Cookies? Help
Hi all:
I have send this message but didn't receive any replies, I hope this
time I will find some help
I have a servlet that deal with cookies, it will get the cookie from
the user request header information, these information include the
following
User ID
User Password
Etc...
The user shall be able to send also the User ID and User Password if
he want to change his ID and Password and then go on with these new
values to over write the old values stored in his cookies
I need to MODIFY the value of the User ID and Password, and return the
new set of cookies with the new values to be replaced with the old
values.
Is there any way to do this
Your replies are highly appretiated
Bilal Okour
Java Developer
_______________________________________________________________________
____
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