• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ActionContext and Session Objects

 
Rishi Kanth
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

In my application, I obtain the username and password. I then encrypt/encode the values and compare them against the encrypted database values. I am successfully able to retrieve the values from the database and load it into the respective VO objects.

Now, the problem is:

After Login user -> Instance of VO object


As I want to use "user" object in the application, I decrypt the database values, set the VO object with actual values and store them in session.

After Decrypting


When I check the database, after user logs out, the decrypted values(in the VO Objects stored in the session) replace/updates the encrypted value in the database. I am not calling Save() method explicitly anywhere in the program.

Can someone help with the issue.

Thanks,
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without providing more information it's going to be difficult to help. *Something* is persisting the object. Whatever it is, however, is most likely not Struts.
 
Rishi Kanth
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:Without providing more information it's going to be difficult to help. *Something* is persisting the object. Whatever it is, however, is most likely not Struts.


Thanks for reply. I have small piece of function which commits the session every time the "results" are displayed in the page. This function has the following statement.

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, obviously the user is part of the ongoing transaction and shouldn't be :)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic