Re: [enhydra] user-agent session id question
"Radivoj Milin" <[email protected]> Wed, 17 Aug 2005 10:11:51 +0200
| Newsgroups | gmane.comp.java.enhydra.general |
|---|---|
| Message-ID | <00e201c5a303$52aebd60$1700a8c0@talicnitom> |
This is a multi-part message in MIME format... ------------=_1124266331-23376-27 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Hi, In version of Enhydra 5.x method createSession(HttpPresentationComms) is placed in class 'com.lutris.appserver.server.StandardApplication'. It calls sessionManager.createSession() or sessionManager.createSession(String saTok) method. In StandardSessionManager as you can see 'createSession()' calls 'createSession(String ipPortToken)'. 'IpPortToken' is string that is stucked to the end of session id (Scenario if you are using Director connector). So you can try to resolve your problem in 'createSession(String ipPortToken)' method. Regards, Radivoj Milin Enhydra Development Team ----- Original Message ----- From: "Joe Osburn" <[email protected]> To: <[email protected]> Sent: Tuesday, August 16, 2005 7:19 PM Subject: RE: [enhydra] user-agent session id question > Hi Radivoj, > > I think I will try setting the SessionEncodeUrlState to Never. What > version > of the Enhydra StandardSessionManager supports the createSession( > HttpPresentationComms ) method? I am using the latest version of 5.x and > there is two createSession() methods, neither accepts an > HttpPresentationComms parameter though. This would solve the problem, and > is exactly what I originally intended to do, though. > > Joe Osburn > Internet Exposure, Inc. > http://www.iexposure.com > [email protected] > > Web Development - Web Marketing - ISP Services > (612) 676-1946 x12 > >> -----Original Message----- >> From: Radivoj Milin [mailto:[email protected]] >> Sent: Tuesday, August 16, 2005 8:19 AM >> To: [email protected] >> Subject: Re: [enhydra] user-agent session id question >> >> >> Hi, >> >> Every request on presentation object is checked for session >> id(in cookie or >> in url). >> If there is no session id in request the new session will be >> generated. >> There is no option to prevent new session to be generated if >> session id is >> not found. >> >> Parameter (in web.xml file) >> 'SessionManager.SessionEncodeUrlState' can be >> set to 'Never' to avoid session id >> to be stucked in the url. But in that case if browser has >> cookies disabled, >> for that >> user on every new request new session will be >> generated(because no session >> id is found in request). >> >> If that cant resolve your problemCcreate a >> custom session >> manager to support that scenario, one of solutions may be : >> Method 'createSession (HttpPresentationComms comms)' (in >> SessionManger) is >> called for generation of new session(if session id is >> not found in request). You can try to detect user-agent by calling >> 'comms.request.getHeader("user-agent")', and return special >> session not create a new one. >> >> Regards, >> Radivoj Milin >> ----- Original Message ----- From: "Joe Osburn" >> <[email protected]> >> To: <[email protected]> >> Sent: Monday, August 15, 2005 4:48 PM >> Subject: [enhydra] user-agent session id question >> >> >> > Hello, >> > >> > I'm having some trouble with session ids and various search >> engine bots >> > hitting the same links over and over again because of the >> session ids >> > getting stuck on the url. I looked into creating a custom >> SessionManager >> > that would reuse a special session whenever bots hit the >> site, but as far >> > as >> > I can tell, there's no way to detect the User-Agent from the >> > SessionManager. >> > >> > Does anyone have any thoughts or any ideas how prevent new >> session ids >> > from >> > being generated for specific user-agents? Thanks! >> > >> > Joe Osburn >> > Internet Exposure, Inc. >> > http://www.iexposure.com >> > [email protected] >> > >> > Web Development - Web Marketing - ISP Services >> > (612) 676-1946 x12 >> > >> > >> > >> >> >> -------------------------------------------------------------- >> ------------------ >> >> >> > >> > -- >> > You receive this message as a subscriber of the >> [email protected] >> > mailing list. >> > To unsubscribe: mailto:[email protected] >> > For general help: mailto:[email protected]?subject=help >> > ObjectWeb mailing lists service home page: > http://www.objectweb.org/wws >> > > > > > -------------------------------------------------------------------------------- > > -- > You receive this message as a subscriber of the [email protected] > mailing list. > To unsubscribe: mailto:[email protected] > For general help: mailto:[email protected]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > ------------=_1124266331-23376-27 Content-Type: text/plain; name="message-footer.txt" Content-Disposition: inline; filename="message-footer.txt" Content-Transfer-Encoding: 8bit -- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws ------------=_1124266331-23376-27--