• Home
  • Services
    • Websites
    • Mobile Optimized Websites
    • SEO (Search Engine Optimization)
  • Portfolio
  • Blog
  • About
  • Contact
Contact me about your project. Click here!
linkedin
rss
google_plus
email
  • Home
  • Services
    • Websites
    • Mobile Optimized Websites
    • SEO (Search Engine Optimization)
  • Portfolio
  • Blog
  • About
  • Contact

Blog Post

CodeIgniter, Cookies, and IE9 (oh my!): Underscores in cookie name fails in IE9

13 Feb 2012
Comment are off
Eric

I just ran into a scenario where I implemented a Remember Me checkbox on a login page (powered by CodeIgniter).  Turns out that if you use CodeIgniter Cookies and you have an underscore in the cookie name, that IE9 has a fit and won’t let you login.

So my login controller had something like this in it…

$this->load->helper('cookie');
$this->data['remember_email'] = '';
if (get_cookie('site_remember') != '') {
$this->data['remember_email'] = get_cookie('site_remember');
}

The simple fix was to remove the underscores from the cookie name and it worked great.

About the Author
Eric Hicks is a Freelance Web Developer in Tampa Bay, FL specializing in PHP/MySQL programming, CodeIgniter, and ExpressionEngine, WordPress, Internet Marketing and SEO. Call (813) 418-6833 if you are interested in hiring Eric for your Internet project.

Social Share

  • google-share

Contact

Eric A. Hicks, MBA
Freelance Web Developer
(813) 418-6833
[email protected]
Note: Email is the BEST way to communicate with me!

10736 Doc Brittle St.
New Port Richey, FL 34655

Contact

Eric A. Hicks, MBA
Freelance Web Developer
(813) 418-6833
[email protected]
Note: Email is the BEST way to communicate with me!

10736 Doc Brittle St.
New Port Richey, FL 34655

Recent Posts

  • Delete all messages in your LinkedIn inbox
  • Custom WordPress shortcode to display current year
  • How to quickly add responsive images to WordPress with width:100% CSS set
  • Google Analytics tutorial for business owners
Copyright © Eric A Hicks, LLC