C
Cor
Hi,
I was trying to make a nice example for Luís Serpa when something happened
that I found strange.
Who can tell me what I do wrong.
I made a normal Webform class with the IDE so automatic an Aspx page (but
that is not important for this question)
I made:
- A button and a textbox on the form;
- A module with a public string variable;
- The button was used to append a string in the textbox.
And then it happened: I was always thinking that I only could use "session"
information or a database or whatever. No the data did stay in the string
variable every time and when I did a push on the button the string became
longer and longer.
I stopped the debug session and started again. The magic was there, the old
value from the variable showed up.
I made an extra button, to stop the session with session.abandon, no
success.
I added session.clear, no success.
I waited 1 minute, and yes it was cleared. I tried this different times and
the string was cleaned, but for me at unpredictable times.
I made a test with a session.item that I loaded with the first button and
with that there was no problem, it was nice cleaned with the session.clean
every time I pushed the extra button.
Is this normal behaviour or am I doing something wrong.
(It looks if the dll stays alive and is picked up again with the next
visit).
(Visual Studio Net 2003 I did test it too with IE 6.0)
Thank you.
Cor
I was trying to make a nice example for Luís Serpa when something happened
that I found strange.
Who can tell me what I do wrong.
I made a normal Webform class with the IDE so automatic an Aspx page (but
that is not important for this question)
I made:
- A button and a textbox on the form;
- A module with a public string variable;
- The button was used to append a string in the textbox.
And then it happened: I was always thinking that I only could use "session"
information or a database or whatever. No the data did stay in the string
variable every time and when I did a push on the button the string became
longer and longer.
I stopped the debug session and started again. The magic was there, the old
value from the variable showed up.
I made an extra button, to stop the session with session.abandon, no
success.
I added session.clear, no success.
I waited 1 minute, and yes it was cleared. I tried this different times and
the string was cleaned, but for me at unpredictable times.
I made a test with a session.item that I loaded with the first button and
with that there was no problem, it was nice cleaned with the session.clean
every time I pushed the extra button.
Is this normal behaviour or am I doing something wrong.
(It looks if the dll stays alive and is picked up again with the next
visit).
(Visual Studio Net 2003 I did test it too with IE 6.0)
Thank you.
Cor