Stubborn sessions and request.form
Posted on 2004-10-27
I'm going in circles here. It seems this worked fine until I went through it a second time, then it just stopped working.
I have a page login.asp.
On login.asp the directory path is stored in a variable called str
There is a link that opens a page in an inline frame which passes the variable str and gives it a sessiion name:
session("storedirectory") = str
I do a response.write session("storedirectory") which shows up fine.
At first, it showed up on each consecutive page without a problem. At the end, it passes the variable thriough a form which breaks out of the inline frame back to the current website and a specified file.
After the session did not work the second go round, I tried passing the str variable through a form field and requesting it on the next page, but it will not show up no matter what.
<input type="text" name="xyz" size="30" maxlength="50" value="<%=session("storedirectory")%>">
keepdirectory = request.form("xyz")
response.write keepdirectory& "OK"
I added the "OK" to be sure that the "Internet was't broken" (hee hee). and it shows up fine.
But the value does not which displays fine on page 1.