These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Keeping entitys in asp.net Session
PostPosted: Fri Apr 18, 2008 3:13 am 
Beginner
Beginner

Joined: Thu Nov 29, 2007 4:36 am
Posts: 20
Hi.
My situation is like this :
I have a CustomerOrder for when a customer starts an order. The order is kept in session.

I am using SessionPerRequest.

The thing is that when the customer selects a new product, the old session is closed. So if I go CustomerOrder.Client(client being lazy loaded) - "failed to initialize - no session".

I have currently an NH session kept in the asp.net session ... but it seems to bring more hurt than joy :).

Any suggestions to this ?


I was thinking of keeping the orderid in session and at every request to reload the Order from the database ... so it will stay "fresh" :)

Any thoughts ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.