Click to See Complete Forum and Search --> : Session variable - I don't understand


nkamp
06-13-2006, 05:09 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.

vanny
06-13-2006, 08:11 PM
Can you put in the full URL path, as I think the problem is with your request. I could be wrong, but in you example you dont have a query string object of URLattach.

The request items are

Count = 351
dt = 6%2F13%2F2006%2010%3A31%3A30%20AM
startzoek = nu
MenuItem = BDRF
afkorting = a
bedrijfnaam = a
zoekcategorie = -1
plaats =
zoekland = -1

Maybe try request.querystring() to return everything in the querystring.

Terrorke
06-15-2006, 02:41 AM
Yep vanny is wright.

Your are trying to put something in your session with request.
But you have to say something like :
session("sesURLattach") = Request.querystring("URLattach")

Are you from Belgium or Holland? :)

nkamp
06-15-2006, 03:24 AM
Hello,

I'm from the Netherlands.
Oké I have it just working now. And afterwards it was very simple and stupid.
The real thing was that the document was build and on the end I did a submit to make a session variable on the server. But after the submit the page was build again..... and on the end the submit again.
I was so focussed on the timeout error that I not realize what was really happening client - server.
If now submit was on and on and on...... again then I had realized it.

Thank you for helping me.

Nico

Terrorke
06-16-2006, 07:34 AM
The way I always do this is to submit to another pages and let that page do all the handling.