Re: invalidate a session
"Gowda, Ramakrishna" <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <[email protected]> |
Hi Ashish,
To invalidate a http session, I think the method "invalidate()" is useful to
you.
The text reads as "Invalidates this session then unbinds any objects bound
to it."
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSession
Regards
Rama Krishna Gowda
SIEMENS BUSINESS SERVICES
Waters Court
1st Floor, Salt Lane
Coventry - CV1 2GX, UK
Home:
27 B, Widdrington Road,
Coventry - CV1 4EU, UK
Ph: 0044-247-683-3373 (Office)
0044-776-369-8270 (Mobile)
0044-247-623-1582 (Home)
Fax: 0044-7092355130
Email: [email protected]
-----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"
> >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
___________________________________________________________________________
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