If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > What is a user in ASP Application?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-17-06, 00:26
DBA_Rahul DBA_Rahul is offline
Registered User
 
Join Date: May 2004
Location: bangalore
Posts: 270
What is a user in ASP Application?

What is a user session in ASP Application? Is it related to the IP of the client machine? How do the IIS Server recogise a new user session? What does the user meant here? And how do the IIS recognise the end the sesion of a user? If I open two LOGIN.asp of the same ASP Application, Does that mean that I have open two user session? Please make me clear on dis?
__________________
Reply With Quote
  #2 (permalink)  
Old 02-17-06, 03:23
Td04 Td04 is offline
Registered User
 
Join Date: Mar 2004
Posts: 52
if you set the IIS application to "windows authentification" you will get the login username for the windows network.
session("windowLogin")=Request.ServerVariables("AU TH_USER")

otherwise the ip
__________________
"Never underestimate a large number of morons"
Reply With Quote
  #3 (permalink)  
Old 02-17-06, 04:45
DBA_Rahul DBA_Rahul is offline
Registered User
 
Join Date: May 2004
Location: bangalore
Posts: 270
Fine TD04.............. Now answer my one query........... Lets say i have opened two windows of th same ASP application on my client machine. According to ya, there will b only one session, common for both the windows? Now if dat is the case, then Can i use the same Session variable in both the windows. Lemme give ya n example.

Window 1:
SomePage.asp----------Session("Test") = 1

Window 2:
OtherPage.asp--------------- Response.write Session("Test")


Now My question is, What will be displayed on th OtherPage.asp (Window 2 and Window 1)........
__________________
Reply With Quote
  #4 (permalink)  
Old 02-17-06, 07:00
Td04 Td04 is offline
Registered User
 
Join Date: Mar 2004
Posts: 52
yes use where you like, it should be the same in both pages.
__________________
"Never underestimate a large number of morons"
Reply With Quote
  #5 (permalink)  
Old 02-17-06, 07:05
DBA_Rahul DBA_Rahul is offline
Registered User
 
Join Date: May 2004
Location: bangalore
Posts: 270
That means if I use Session.Abandon() in some1.asp and request for the page from any of the windows having the same ASP Applpication, And then once executed the some1.asp, next time i request for any page of the ASP Application from any of the open windows, Will thr be a new Session created?
__________________
Reply With Quote
  #6 (permalink)  
Old 02-20-06, 07:10
Td04 Td04 is offline
Registered User
 
Join Date: Mar 2004
Posts: 52
If you have the code that create the session variable in those pages also it will be created.
sth like
Code:
session("mySession")=request.serverVariables.myFathersWallet
__________________
"Never underestimate a large number of morons"
Reply With Quote
  #7 (permalink)  
Old 02-21-06, 00:39
DBA_Rahul DBA_Rahul is offline
Registered User
 
Join Date: May 2004
Location: bangalore
Posts: 270
And what if i don have any session variable in those pages.....???
__________________
Reply With Quote
  #8 (permalink)  
Old 02-21-06, 05:23
Td04 Td04 is offline
Registered User
 
Join Date: Mar 2004
Posts: 52
if you use abandon session thats what you will do, so you have to define it again in that case in the oter page I beleve.
But if you don't, you will have the variable stored as a session variable, accessible from which other page you want (if you do not open those pages in a new internet explorer session).
__________________
"Never underestimate a large number of morons"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On