PHP, Cookies and www…oh my!
It always amazes me how many little “gotchas” there are in web design. Here’s the sitch:
- Set a cookie using PHP at www.site.com/wordpress…set the cookie for the root: /
- Can read the cookie at www.site.com/wordpress
- Can NOT read the cookie at www.site.com/another_folder
- CAN read the cookie at site.com/another_folder (without the www)
After some digging found this article which shares how to set cookies so they can be accessed at www. or .
http://stackoverflow.com/questions/2345137/php-cookie-problem-www-or-without-www
Boo-ya!
Recent Posts
- IE, Forms, Image Submit Buttons = Bad Mojo
- A good .htaccess file
- It’s the little things
- Converting a site to WP but doing the right SEO stuff
- 301 Redirect and Canonicalization
Categories
- Android
- Cookies
- CSS
- Droid 2
- FireFox
- General Nerdiness
- God
- HTML
- IE8
- Internet Explorer
- Introduction
- Javascript
- jQuery
- Mexico
- Photoshop
- PHP
- Random Thoughts
- SEO
- Spyware
- Virus
- Web Design
- Win7
- Wordpress
