This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes portlet session problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "portlet session problems" Watch "portlet session problems" New topic
Author

portlet session problems

laura mccord
Ranch Hand

Joined: Feb 10, 2009
Posts: 108
Hi,

I have a portlet that actually sparks a pop-up in my portal. It works 95% of the time but when it doesn't I have to reconcile the issues.

The logic is a user logs in and based on information in a stored procedure a pop-up appears and they are given options to make their selections and it saves the person's information and the items they selected.

Lately, I noticed that in some cases the items in the database are duplicated. But not always the same. Sometimes it appears that the person had selected "None of the above" which made me think that perhaps after a person leaves and another another person comes in right behind them...they are presented with the previous person's pop-up options and the new person thinks it doesn't apply to them so they click "none of the above" but the form is still tied to the previous person's information.

I've tried many things...making the objects null and then creating a new object(), but it seems like it's not working. I'm also using Hibernate saveOrUpdate() method to update the database. Is it possible that the previous person is not logging out, or they did log out and they didn't close the browser, and the browser is hanging on to the session data? Is it because the portlet is a pop-up which is causing problems and maybe it should be made into a traditional portlet?

Any suggestions? I've been fighting this for months.

THanks
 
GeeCON Prague 2014
 
subject: portlet session problems