-
Notifications
You must be signed in to change notification settings - Fork 26
Dariusz Debowczyk's Session Class
Category:Modifications As of version 1.7.2 CodeIgniter's built in session class still has problems setting cookies on Internet Explorer 6,7, and 8. If you run into this problem, one possible solution is replacing the CI's session class with Dariusz Debowczyk's session class.
Dariusz's class uses PHP's built-in session-handling routines which work without issue on all known browsers.
Some CI uberfans will be quick to point out, however, that PHP's native session functions store information in the server's /tmp directory. This can be insecure if the server is hosted on a domain with other hostile users. There are ways to work around this. First of all, you can tell php to save it's session data in a different directory. This can be done on the apache web server via an .htaccess file, or in the php code itself by using ini_set(). This [url=http://www.google.com/search?hl=en&q=php+save_path+session+.htaccess&aq=f&oq;=&aqi;=]Google Search[/url] can get you started in the right direction.