Hi team,

        With due apologies to Jason Hunter here i go


        Just look into the snippet of code

String sessionid = null;

Cookie[] cookies = req.getCookies();

if (cookies != null)
{
        for (int i=0; i < cookies.length; i++)
        {
                if (cookies[i].getName().equals("sessionid"))
                {
                        sessionid = cookies[i].getValue();
                        break;
                }
        }

}

Ref : Jason Hunters Book p:205

In the above i have understood that a particular servlet wil have lot of
cookies, we are running thro them and gettting the cookie value and
name related to our browser, if that is the case i didnt know how many
client is going to access my servlet how shall i assign them a dynamic
name to each one of them.  I am soo confused in this aspect please helpme.

Thanks for ur assistance and help,
Srini

  #-----------------------------------------------------------------------#
  #                                                                       #
  #           "ARISE AWAKE and stop not till the GOAL is reached"         #
  #                                                                       #
  #                     [EMAIL PROTECTED]                          #
  #-----------------------------------------------------------------------#

On Sun, 1 Aug 1999, Srinivasan S (Systems Engineering Group) wrote:

> Hi team,
>
>       Same old doubt which a kid will ask when he starts learning
> session tracking.  I have a servlet running on my server and a client
> access that page the cookie name is "cooks" for session A and another
> client access the same server say session B what name will it be given to
> session B if the same "cooks" then for a single servlet all the cookie
> name is equal.  If so, how a session tracking is implemented, please help
> me i have read jason hunters book still i have this doubt get uncleared.
>
> Thanks for ur help
> Srini
>
>

___________________________________________________________________________
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