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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

show all IP addresses logged into a page

Status
Not open for further replies.

knuckle05

Programmer
Dec 17, 2001
247
CA
Hi All,

I'm looking to build a page to be used for online support. The support personnel need to see the IP address' of each user that is logged into the specific page.

Is this possible to do in ASP, and if so, how? Just looking for someone to point me in the right direction.

Thx alot
 
depends on what you mean by "logged into"

http is stateless, meaning as far as the server is concerned, after sending the page to the client, the connection is over/closed/kaput.

if you require users to "log in" using a username/password, you could store their IP in a database or in an application variable...but unless they "log out" you have no way of knowing if they're still viewing a page or if they shut their machine off two hours ago.

another possibility is to add code to session_onstart and session_onend in global.asa to record the IP data, but i have experienced problems with session_onend never happening...i think it's an IIS4 bug.

i believe IP is accessible through
Request.ServerVariables("REMOTE_ADDR")


=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top