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?
Dani 4,084
The Queen of DaniWeb Administrator Featured Poster Premium Member
Recommended Answers
Jump to PostCheck 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.htmlbye!
All 5 Replies
pritaeas 2,194
¯\_(ツ)_/¯ Moderator Featured Poster
Dani 4,084
The Queen of DaniWeb Administrator Featured Poster Premium Member
cereal 1,524
Nearly a Senior Poster Featured Poster
mschroeder 251
Bestower of Knowledge Team Colleague
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.