I have a session variable X , and i am storing in it a list of string.
in the page the list of string is modified and stored in session X, in the execution there is a call to an asynchronous method, through which the list of string is modified and i am also saving it in session X.
while debugging i can see that session X contains all items of the List that were saved before asynchronous call anf after it.
I have a timer on page that refrehes the page after an interval of time.
The contents of session will be displayed in a list box.
But at that moment after refresh the session X only contains the old List of string ( List that contain items before entering asynchronous method).
Rabih Matar
Member
92 Points
33 Posts
session variable in asynchronous method
Feb 09, 2013 07:39 AM|LINK
Dears,
I have a session variable X , and i am storing in it a list of string.
in the page the list of string is modified and stored in session X, in the execution there is a call to an asynchronous method, through which the list of string is modified and i am also saving it in session X.
while debugging i can see that session X contains all items of the List that were saved before asynchronous call anf after it.
I have a timer on page that refrehes the page after an interval of time.
The contents of session will be displayed in a list box.
But at that moment after refresh the session X only contains the old List of string ( List that contain items before entering asynchronous method).
How can this be explained ?
abamboria
Member
145 Points
88 Posts
Re: session variable in asynchronous method
Feb 09, 2013 11:41 AM|LINK
Do you want modify the list in session variable X after you modify the list. am i wright.
Mark as Answer:- if the post helped you...
Rabih Matar
Member
92 Points
33 Posts
Re: session variable in asynchronous method
Feb 09, 2013 12:00 PM|LINK
No i do not want to modify the list of string in the session, i am saving the list is session.
the list will collect information to display summary for the user.
abamboria
Member
145 Points
88 Posts
Re: session variable in asynchronous method
Feb 09, 2013 12:31 PM|LINK
you want to save list in the session variable after modification or before the modification in the list ?
If possible, post your code.
Mark as Answer:- if the post helped you...
Rabih Matar
Member
92 Points
33 Posts
Re: session variable in asynchronous method
Feb 10, 2013 06:10 AM|LINK
Dear Abamboria there is no rapprochement between the problem and your questions.
I want an explanation for what is happening with me.