ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #16  
Old July 8th, 2009, 06:39 AM
sync_or_swim's Avatar
sync_or_swim sync_or_swim is offline
Moderator
Click here for more information.
 
Join Date: Mar 2006
Location: South Wales
Posts: 3,461 sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 1 Day 16 h 50 m 26 sec
Reputation Power: 1806
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.

Reply With Quote
  #17  
Old July 8th, 2009, 08:50 AM
newtoasp_pk newtoasp_pk is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2009
Posts: 105 newtoasp_pk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 32 m 39 sec
Reputation Power: 1
Quote:
Originally Posted by sync_or_swim
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.


-------------

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

Reply With Quote
  #18  
Old July 8th, 2009, 09:17 AM
markWilson markWilson is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2008
Posts: 253 markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level)markWilson User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 16 h 24 m 19 sec
Reputation Power: 82
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 agree

Coding Stuffs,

web development help
Thank You,
KiranK

Reply With Quote
  #19  
Old July 8th, 2009, 09:57 AM
newtoasp_pk newtoasp_pk is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2009
Posts: 105 newtoasp_pk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 32 m 39 sec
Reputation Power: 1
Quote:
Originally Posted by markWilson
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


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

Reply With Quote
  #20  
Old July 8th, 2009, 10:53 AM
sync_or_swim's Avatar
sync_or_swim sync_or_swim is offline
Moderator
Click here for more information.
 
Join Date: Mar 2006
Location: South Wales
Posts: 3,461 sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 1 Day 16 h 50 m 26 sec
Reputation Power: 1806
Quote:
Originally Posted by newtoasp_pk
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
Can you show us the full code for page2.asp so we can see what else is going on on the page.

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.

Reply With Quote
  #21  
Old July 14th, 2009, 12:02 PM
newtoasp_pk newtoasp_pk is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2009
Posts: 105 newtoasp_pk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 32 m 39 sec
Reputation Power: 1
Quote:
Originally Posted by sync_or_swim
Can you show us the full code for page2.asp so we can see what else is going on on the page.

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.

-------------

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.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > VBScript - General - Question - NT Logon


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek