Re: Session communication
Re: Session communication
- Subject: Re: Session communication
- From: Chuck Hill <email@hidden>
- Date: Thu, 17 Mar 2005 12:55:52 -0800
How do you handle multiple instances?
On Mar 17, 2005, at 12:31 PM, Sam Barnum wrote:
I've done a little toying around with something similar. When a user
logs in, I register that session at the application level, and call
logout() on any existing registered sessions for the same user which
haven't already been closed or logged out of. Logging out removes the
session from the application session list.
The main pitfalls to watch out for:
Don't close a session if it's already been closed
Use WeakReferences in the Application to store the Sessions so if a
Session is closed it can be garbage collected.
You should synchronize this if you're running multi-threaded.
You might need to worry about other concurrency issues. Worry enough
for both of us, since I tend to ignore such things :)
--
Sam Barnum
360 Works
http://www.360works.com
415.929.7318
On Mar 16, 2005, at 9:14 AM, Sébastien Gruhier wrote:
I have an application with user access (lgon/password).
I would like to avoid to have the same user connected twice. If a guy
try to do it I want to disconnected the other one logged with the
same account.
Clear enough?
Le 16 mars 05, à 17:52, Chuck Hill a écrit :
It's software so most anything is "possible". It is certainly not
supported by the design and sounds a little dangerous. What are you
trying to achieve?
Chuck
On Mar 16, 2005, at 8:35 AM, Sébastien Gruhier wrote:
Hi,
I would like to know if it's possible to "communicate" between
session or eventually to close a session from another?
Thank you
Seb
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden