View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
FoxWeb does not send a cookie called 'UserName', so unless one of your own scripts creates this cookie, it will not exist.  The REMOTE_ADDR server variable should always exist, unless for some reason your Web server does not pass it to FoxWeb.  You can view all the server variables passed by your server by calling show_cgi.fwx:
 
Server Variables
APPL_MD_PATH  /LM/W3SVC/5/Root 
APPL_PHYSICAL_PATH  [hidden] 
CONTENT_LENGTH 
GATEWAY_INTERFACE  CGI/1.1 
HTTPS  off 
INSTANCE_ID 
INSTANCE_META_PATH  /LM/W3SVC/5 
PATH_INFO  /show_cgi.fwx 
PATH_TRANSLATED  [hidden] 
REMOTE_ADDR  64.169.160.213
REMOTE_HOST  64.169.160.213
REQUEST_METHOD  GET 
SCRIPT_NAME  /show_cgi.fwx 
SERVER_NAME  foxweb.eontech.com 
SERVER_PORT  80 
SERVER_PORT_SECURE 
SERVER_PROTOCOL  HTTP/1.0 
SERVER_SOFTWARE  Microsoft-IIS/5.0 
URL  /show_cgi.fwx 
HTTP_ACCEPT  */* 
HTTP_ACCEPT_LANGUAGE  en-us,de;q=0.5 
HTTP_CONNECTION  Keep-Alive 
HTTP_HOST  foxweb.eontech.com 
HTTP_USER_AGENT  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461) 
HTTP_COOKIE  FW_SessionID=0WE14AZ1S1 
 

FoxWeb Support Team
support@foxweb.com email

Sent by Gene Gerard on 03/06/2003 05:39:25 PM:
I'm trying to determine how many different users access my site by either identifying the IP address or possibly cookies.
 
I've used the following:
 
  m.user_ip_adr =Request.ServerVariables("REMOTE_ADDR")
  m.user_cookie =Request.GetCookie("UserName")
  m.sesid =Session.GetSessionID()
The session ID works ok but the other two always return blanks.
 
Any info would be appreciated.
 
Regards,
 
Gene