PDA

View Full Version : Session variable


nkamp
06-13-2006, 10:11 AM
Hello,

If I do

session("sesURLattach") = "count351&6%2F13%2F2006%2010%3A31%3A30%20AM&startzoek=nu&MenuItem=BDRF&afkorting=a&bedrijfnaam=a&zoekcategorie=-1&plaats=&zoekland=-1"

then I don't get a timeout error. But if I do (after the submit)

session("sesURLattach") = Request("URLattach")

The value of URLattach is:
count=351&dt=6%2F13%2F2006%2010%3A31%3A30%20AM&startzoek=nu&MenuItem=BDRF&afkorting=a&bedrijfnaam=a&zoekcategorie=-1&plaats=&zoekland=-1

I'm sure of the value because after I fill the session variable I have a response.write with a alert of the session variable. This value is shown in the alert box and at the same time I get the timeout error. Why?? When the document is submitted can it be that the value of document.contexthiddenform.URLattach.value is not on the server at the right time?

Why do I get a timeout error in the second piece of code and not in the first piece of code?????

Does anybody understand this?

Nico.

miranda
06-19-2006, 07:33 PM
While using Request("URLattach") will work. You are looping through the request object when you don't specify which collection to use. Try using Request.Form("URLattach") instead.

nkamp
06-20-2006, 07:00 AM
Sorry,

In the meantime I have solved already the problem. It's due to the submit. There was no condition to do only the submit once. The problem was that I was so focussed on the timeout error which I don't understand that I was not thinking about what real thing was. If I directly saw a submit happening and again, and again...... Yeh, then I think I had realized what was really happening. But I didn't see only the timeout error and then it was over.

Oke, Thank you for helping me.

Nico