SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,223
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    getting same identifier per browser with two domains

    I have two domains which are set going to my coldFusion server( checked Use J2EE session variables in CFAdministrator > Server Settings > Memory Variables ).

    Code:
    index.cfm
    
    <a href='http://www.myDomain1.com'>myDomain1</a>
    <a href='http://www.myDomain2.com'>myDomain2</a>
    If a user clicks one of the links above, it will be going to the same page(index.cfm) of my server.

    I like to check the browser is same or not.


    For example,
    if a user clicks one of the links above, I like to get same an identifier because it moved with the same browser.

    if the user type in myDomain1.com or myDomain2.com in the address box with the same browser,
    I like to get the same identifier.

    If the user approachs to my server with a different browser, I like to get a different identifier.

    But cfid, cftoken, and session becomes different when domain is changed although the browser is same. So I can't check the approaching browser is same or not.

    How can I check the browser is same or not with two domains?

  2. #2
    SitePoint Enthusiast
    Join Date
    Oct 2006
    Location
    Orange County, CA
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    #CGI.HTTP_HOST# - hostname (www.mydomain1.com)
    #CGI.HTTP_USER_AGENT# - browser name (Internet Explorer)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •