SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2009
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    cookie doubt solve if any body know the solution

    hello friends i have fixed the cookie for my site where it is working properly but their is coming an issue

    the issue is while i type http://www.address.com it will create cookie and then i will open a new tab and type address.com it is not taking the cookie which is created for the http://www.address.com why i dont know but if i will type http://www.address.com it will take the cookiee and work according to the program ie i am meaning what while i am typing www.address.com one cookie is creating and address.com another cookiee is creating i need to avoid this how i need to make both address same cookiee how ?

    if anybody know pls tell.......

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    http://us.php.net/setcookie

    The fifth parameter to setcookie is the domain

    Set it to ".address.com"

    The manual had the answer to your question, always check there first


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
  •