Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Variables

Status
Not open for further replies.

allyeric

Programmer
Mar 14, 2000
104
CA
I hope I am posting to the right forum.&nbsp;&nbsp;This was working a few days ago, but for some strange reason its not any more.&nbsp;&nbsp;I am putting a login name and number into session variables, but when I try to get them from another asp page, there is no value in them.<br><br>On the password page, I have 2 text boxes, named txtEmpNo and txtPassword, and a submit button, linked to the Verify asp.<br><br>this code is from the verify.asp<br><FONT FACE=monospace><br>Dim InstNo<br>Dim InstPswd<br><br>InstNo = request.form (&quot;txtEmpNo&quot;)<br>InstPswd = request.form (&quot;txtPassword&quot;)<br><br>Session(&quot;IDNo&quot;) = InstNo<br>Session(&quot;Pswd&quot;) = InstPswd<br><br>response.write InstNo<br>response.write InstPswd<br></font><br>&nbsp;I print to screen to check - and nothing is printed.&nbsp;&nbsp;I don't see what the problem is here - perhaps someone else can see something I might be missing?<br><br>my link from password to verify is:<br><br><FONT FACE=monospace>&lt;a href=&quot;javascript:location.replace('VerifyInst.asp')&quot;&gt;&lt;input type=&quot;submit&quot; value=&quot;Enter&quot; name=&quot;B1&quot;&gt;</font><br><br>I have a strange feeling that is where the problem lies - but I want this code there so user cannot go back to this page after.<br><br>I hope I am posting to the right forum.&nbsp;&nbsp;<br><br>Thanks.<br>
 
I was right - if I take out that link, it works fine - can anyone tell me why this is?
 
Hi allyeric,<br><br>try this<br>&lt;%<br>&nbsp;&nbsp;&nbsp;&nbsp;InstNo = Session(&quot;IDNo&quot;) <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;InstPswd = Session(&quot;Pswd&quot;)&nbsp;&nbsp;<br>%&gt;<br><br>&lt;%=InstNo%&gt;<br>&lt;%=InstPswd%&gt;<br><br>This will surely print out the values of ur session variables on to the page.<br><br>Hope this helps u ..<br><br>Regards<br>Vinod<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top