|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
Any values that you store in session variables will persist as the user moves from page to page, and will only be destroyed if you destroy them or after a pre-defined period of inactivity.
Check out the w3scools reference I'm afraid I dont understand why you need to use form variables to pass the values from page to page when the session object will do what you need. If you really need to pass the values via the form collection then you could store your session variable in the hidden element, eg: Code:
<input type=hidden name=Username value="<%=Session("Username") %>">
But IMO this is unnecessary. Can you describe exactly what you need to achieve. |
|
#17
|
|||
|
|||
|
Quote:
------------- On Page 1.asp Im doing the following <% Dim Username Session("Username")= mid(Request.ServerVariables("AUTH_USER"),instr(Request.ServerVariables("AUTH_USER"),"\")+1,len(Request.ServerVariables("AUTH_USER"))) Response.write "<br>name=" & Session("Username") <form name=test action="page2.asp" method=post> <input type=hidden name="Username" value="<% =Session("Username") %>" > <input type=submit name="submit" value="submit"> %> On Page2.asp,Im trying to display the value & am getting blank <% Response.write "<br>username=" & Request.form("Username") %> But am getting a blank;whereas the value is getting correctly populated in Page1.asp |
|
#18
|
|||
|
|||
|
instead of using Request.form("Username")
you can directly use Session value as "Session("Username")" actual problem is with "mid(Request.ServerVariables("AUTH_USER"),instr(Request.ServerVariables("AUTH_USER"),"\")+1,len(Request.ServerVariables("AUTH_USER")))" this its not getting proper value
__________________
if you found this post is useful click (right side on this reply ) and agreeCoding Stuffs, web development help Thank You, ![]() KiranK |
|
#19
|
|||
|
|||
|
Quote:
why do u think the problem is with the expression. I have introduced this to get only the name without the domain. If I refresh the page it gets the value,otherwise the value is blank |
|
#20
|
||||
|
||||
|
Quote:
As per previous questions: why do you need to store the value at all, why cant you just reference the contents of the session variable. |
|
#21
|
|||
|
|||
|
Quote:
------------- The problem is that if I enable both Windows Integrated Authentication & Anonymous access,the NTLogon does not come through. However if I disable Anonymous access & only enable WIA, I get a LOGON without fail. Is there a way out to get the LOGON keeping both enabled. I cannot disable the Anonymous access. |
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > VBScript - General - Question - NT Logon |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|