SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast devhen's Avatar
    Join Date
    Jul 2002
    Location
    Salt Lake City, UT
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can I set the domain for the PHPSESSID cookie?

    When I visit my site without using the www before the domain, PHP sets its PHPSESSID cookie for that domain (without the www). However, my secure checkout pages are on www.domain.com. So when the user is redirected, his/her session variables are gone.. a new PHPSESSID cookie has been set for 'www.domain.com' and this session is empty.. So my user's shopping cart has dissapeared on them at this point.

    Is there a way I can force the domain that PHP uses to read/write its PHPSESSID cookie?

    Thanks

    Devin

  2. #2


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
  •