I am trying to get Session Id using session.getId() and store this session ids in the database.. I see that i am getting same session id until i close the IE browser window and open a new one. is this Common... Or there is some property in the App server that has to be changed?
Thanks in Advance. Vinay -----Original Message----- From: Christian Bollmeyer [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 2:23 PM To: Struts Users Mailing List Subject: Re: How can i get struts JSessionId from the the url Am Donnerstag, 22. Januar 2004 16:49 schrieb Vinay Kumar Munikuntla: > Hi > > How can i get struts JSessionId from the the url.. ? What exactly do you want - if it is only retrieving the session id, use session.getId(). Some useful methods to check where the session info came from are request.isRequestedSessionIdFromCookie(); request.isRequestedSessionIdFromURL(); request.isRequestedSessionIdValid(); If you want to get rid of the ;jsessionid= thing, you have exactly two choices: 1. Don't use sessions and kill existing ones. 2. Enforce Cookies if the client (search engine spiders do not) supports them. You can use the above methods to tell what method was used, and if it's not the cookie version, branch to an error page telling the user to enable cookies first. > Vinay Kumar Munikuntla HTH, -- Chris. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ----------------------------------------- This email, including any attachments, is for the designated recipient(s) only and may contain confidential, proprietary, and/or legally privileged information. If you are not a designated recipient, or have received it in error, please notify the sender and destroy it and all attachments and copies immediately, without distributing, disclosing, or using it in any manner. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]