I autoload the Session library in CodeIgniter. However, sometimes there are controllers that output XML, JSON, an image, or other mime types, and I don't want these sending back cookies in the header. Is there a way to suppress this on a per-controller basis?
Jump to Post
Check this: http://xplus3.net/2010/05/31/conditional-auto-loading-of-libraries-in-codeigniter/
Or set an application only for those outputs: http://codeigniter.com/user_guide/general/managing_apps.html
All 5 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.