I do not have any idea *why* you want to do this, but you can use session.invalidate() to guarantee the next request will have a new session ID.
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSession.html#in validate() Tim > -----Original Message----- > From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED] > Sent: Monday, June 04, 2007 6:32 AM > To: Tomcat Users List > Subject: RE: I would like a new session each time I start my application > > The thing is that my application access a database. When the user wants > to modify the db, I lock the access to this particular action (and let > the user only view the data) using the sessionID. > Now, if the user is "bad"... He can log on once and get the modify > action... Then he can open a new screen and modify things again... Which > is not what I need. Everytime a new screen is open to execute the > application I need a different sessionID. Do you see what my problem is > ? I don't know another way of doing it. > > > -----Original Message----- > From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Sent: lunes, 04 de junio de 2007 11:07 > To: Tomcat Users List > Subject: Re: I would like a new session each time I start my application > > Liz, please tell us what you actually doing and why you need this? > I think there is a conceptual problem... > > ----- Original Message ----- > From: "Bachler, Elisabeth (Elisabeth)" <[EMAIL PROTECTED]> > To: <users@tomcat.apache.org> > Sent: Friday, June 01, 2007 6:57 PM > Subject: I would like a new session each time I start my application > > > Hi, > I have an application that works under tomcat. > Each time I run my application I have the same sessionID. Is there a way > to generate a differente sessionID each time I start my application? > > Thanks > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]