is it possible to provide costume sessionid while creating session.? so that different time when session needs to be created i can create new sessionid and store it in cookie.
"Many of lifes failure are people who did not realize how close they were to success when they gave up." -Thomas Edison On Sun, Nov 8, 2009 at 5:15 AM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: S Arvind [mailto:arvindw...@gmail.com] > > Subject: Re: Want to customise the tomcat's session logic > > > > deploy one app in tomcat by having context xml in > > catalina>>domain>>xxx.xml . When you access this > > app check the session u will find the path attribute > > with xxx in it. > > You're confusing the session with the cookie. The session is a > spec-defined object in the JVM heap, whereas the cookie is the standard > means of passing an id associated with the session to the client. The path > information in the cookie normally reflects the URI used when the cookie was > generated by the server, but it doesn't have to. > > > Wat i need is two different session for same webapp > > running under single tomcat??? > > I don't think either the servlet spec or any browsers will support that. > You'll need to generate your own set of cookies, separate from session > handling. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >