SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: cookie domain

  1. #1
    SitePoint Zealot y2kbug's Avatar
    Join Date
    Nov 2004
    Location
    Hong Kong
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    cookie domain

    I have two domains, namely hk-forum.net and foyer.biz.
    I have rented a hosting place, which offers me one domain name only.
    foyer.biz is the main domain name.
    As I am so poor that I have no money to rent one more hosting place (actually I need to rent a dedicated server for the forum...), I decided to share the hosting place with the two domains.
    I use "URL Frame" (or Mask URL) in NameCheap.com to redirect hk-forum.net to www.foyer.biz/hk-forum.net/
    However, the cookie set by the scripts of hk-forum.net doesn't work.
    What domain name should I set in cookie in order to make the cookie works?
    Thanks!!

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,806
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    if it is a frameset it will always retain the original referrers URL. You might be best coming out of the frame totally into a new fresh page within the target domain.
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  3. #3
    SitePoint Zealot y2kbug's Avatar
    Join Date
    Nov 2004
    Location
    Hong Kong
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by spikeZ
    if it is a frameset it will always retain the original referrers URL. You might be best coming out of the frame totally into a new fresh page within the target domain.
    Is there any way to show hk-forum.net but not foyer.biz/hk-forum.net, and at the same time the cookie works? I really don't want to show foyer.biz/hk-forum.net...

  4. #4
    SitePoint Zealot ablueman's Avatar
    Join Date
    Jun 2005
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by y2kbug
    Is there any way to show hk-forum.net but not foyer.biz/hk-forum.net, and at the same time the cookie works? I really don't want to show foyer.biz/hk-forum.net...
    I doubt it. Its technically possible but I doubt very much your host would allow it as its a web server setting. Hmm you might be able to do it with .htaccess ? not sure.

    I think its to do with the webserver accepting referrals for other domains.

    I cant guarentee it but thats what I think.

    Maybe someone else can help more than me or set me right?

  5. #5
    SitePoint Zealot y2kbug's Avatar
    Join Date
    Nov 2004
    Location
    Hong Kong
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ablueman
    I doubt it. Its technically possible but I doubt very much your host would allow it as its a web server setting. Hmm you might be able to do it with .htaccess ? not sure.

    I think its to do with the webserver accepting referrals for other domains.

    I cant guarentee it but thats what I think.

    Maybe someone else can help more than me or set me right?
    what can I do if I can access .htaccess?
    I can try it...


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
  •