Strictly speaking, cookies are not part of the WAP 1.1 specification, and it
is currently very rare for a WAP device to support them.  However, many
gateways (most notably the UP.Link, which is what I use) can store cookies
on behalf of devices.  The main reason for the cookies not to exist on a WAP
device is that they are costly (in terms of processing power and memory) to
implement.

One possible alternative is to implement the hidden field functionality of
HTML.

Cheers!
Mark

----- Original Message -----
From: "Jason Hunter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 12:12 PM
Subject: Re: a small problem with number guess game JSP


> yilmaz ay wrote:
> >
> > it has a logical problem.
> > whenever i made a guess and submit it, the JSP resets
> > the session and generates anew random number,
> > so i can never make a successful guess.
> > i know that the problem comes out from my WML code.
>
> WAP doesn't support cookies, so normal servlet session tracking doesn't
> work.  You'll see symptoms exactly like you're seeing.
>
> You might look into the URL rewriting capabilities of servlet session
> tracking, encodeURL(), to get around the lack of cookies.  I haven't
> tried it myself yet.
>
> -jh-
>
>
___________________________________________________________________________
> 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

Reply via email to