Re: [ Craig, Jason ] invalidate a session

Jean-Christophe CHARVY <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
Hi,

Why do you want to invalidate session ? Can't you just send the user on the first machine to the login page with an explicit message ?

For this, you can use a database to store user id with session id, and test this table in the beginning of all your servlets.
You can also use a one-instance class to store these datas ...



---------- Entête Initiale  -----------

De    : "A mailing list for discussion about Sun Microsystem's Java               Servlet API Technology." <[email protected]>
A     : [email protected]
Copie : 
Date  : Thu, 15 May 2003 17:41:06 -0400
Objet : Re: [ Craig, Jason ] invalidate a session

> Good question.
> 
> -----Original Message-----
> From: Ashish Kulkarni [mailto:[email protected]] 
> Sent: Thursday, May 15, 2003 5:29 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] invalidate a session
> 
> 
> hi David
> 
> u mean i cannot invalidate the other session any
> more..this sounds not so good...
> why do u think they removed it
> 
> Ashish
> --- David Graham <[email protected]> wrote:
> > I don't think you can anymore.  You used to be able
> > to do it with this:
> > 
> >
> http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSession
> Context.html
> > 
> > but it's deprecated now.
> > 
> > David
> > 
> > >From: Ashish Kulkarni <[email protected]>
> > >Reply-To: "Struts Users Mailing List"
> > <[email protected]>
> > >To: [email protected]
> > >Subject: [OT] invalidate a session
> > >Date: Thu, 15 May 2003 14:16:32 -0700 (PDT)
> > >
> > >Hi,
> > >
> > >Suppose in a servlet if i get a session id of some
> > >other session, can i invalidate that session and
> > send
> > >some message to the client??
> > >What i want to do , is that the client can login to
> > >only one machine at a time, so if the client log on
> > to
> > >second machine i want to invalidate the session on
> > >first machine
> > >I know the session id of the first machine, how can
> > i
> > >invalidate that session
> > >
> > >Ashish
> > >
> > >
> > >__________________________________
> > >Do you Yahoo!?
> > >The New Yahoo! Search - Faster. Easier. Bingo. 
> > >http://search.yahoo.com
> > >
> >
> >---------------------------------------------------------------------
> > >To unsubscribe, e-mail:
> > [email protected]
> > >For additional commands, e-mail:
> > [email protected]
> > >
> > 
> >
> _________________________________________________________________
> > Add photos to your e-mail with MSN 8. Get 2 months
> > FREE*.
> > http://join.msn.com/?page=features/featuredemail
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail:
> > [email protected]
> > 
> 
> 
> =====
> A$HI$H
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> ___________________________________________________________________________
> To unsubscribe, send email to [email protected] and include in the body
> of the message "signoff SERVLET-INTEREST".
> 
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> 
> 
------------------------------------------

Faites un voeu et puis Voila ! www.voila.fr 

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.