On Fri, 2008-11-07 at 03:48 -0800, Eugene Kondrashev wrote: > I see.. > But, how can I recognize the session id cookie?
I am afraid I do not have any good news for you. > In theory server can use any label to designate session id cookie. Is there > some standard way to get sessionID cookie through HTTPClient? Session cookies are not standardized. JEE servlet containers / .NET applications rely on certain conventions, but effectively an application is free to choose just about any cookie to pass around as a session token. Oleg > Just parsing all cookies on accordance "sessionID" string is not a good > idea,I think. > > olegk wrote: > > > > On Wed, 2008-11-05 at 09:04 -0800, Eugene Kondrashev wrote: > >> Hi! > >> >Alternatively, to generically support all servers, you might want to > >> >do a periodic "is session open" request, which is basically a request > >> >to the server that checks if the session is open. If you want to do > >> >this, there is a very safe way to implement something like this. Just > >> >ask me and I'll explain it (it's not as simple as checking for the > >> >presense of a session, as this will always return true). > >> > >> So can you explain how to do such a periodic "is session open" request? > >> > > > > Just hit the target server with a HEAD or GET and see if you get the > > same session cookie (session id) back. > > > > Oleg > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
