-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew,

Andrew R Feller wrote:
| Thanks for the reply!  As far as why I was looking a regex to match
| the session ID, it was more to know what was valid or not.

The best you could do it determine if it were syntactically valid or not
(that is, you can't check to see if the session id actually identifies a
living session without asking the server for it through
HttpServletRequest.getSession). Since the format of the session id is
not specified, you'd be hard-pressed to come up with any foolproof
checking ;)

| I certainly can match based on anything that isn't a space where I
| expect it to be.

I'm not sure if there's any reason not to accept spaces, either. There's
no prohibition against spaces in a cookie's value.

| I just wanted to know how large it was so I could allocate enough
| space to it.

Hmm.... I would allocate something like 32 octets and then read until
you run out of space. If you aren't done, re-allocate the array and
continue reading.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkf6Og4ACgkQ9CaO5/Lv0PCnqwCfboppBkhEVv3n/1wZpVz2YiEU
MgoAnR4vfc4WYoexAkaeTKFlXrsg+MzN
=bmjt
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to