CodeIgniter Forums
Problem with keeping sessions in IE (I use SSL) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Problem with keeping sessions in IE (I use SSL) (/showthread.php?tid=17586)



Problem with keeping sessions in IE (I use SSL) - El Forum - 04-09-2009

[eluser]Renex[/eluser]
Hello.

I have build a website where the admin area uses SSL certificates. The SSL is setup correctly and the resources are loaded. I have used the functions from http://sajjadhossain.com/2008/10/27/ssl-https-urls-and-codeigniter/ to create the secure url's. On Firefox everything works fine, the certificate is validated.

However in IE (I have tested in IE 6 and 7) appears a problem. The login page validates the certificate but when I click submit it warns me that it might be redirected to a non-secure page (in Firefox the page is validated as secure). The form submits but when it goes to the new controller the session set in login is lost.

What could be the problem and how could I solve this?


Problem with keeping sessions in IE (I use SSL) - El Forum - 04-09-2009

[eluser]GSV Sleeper Service[/eluser]
use native sessions
the CodeIgniter session library causes IE issues for a lot of people


Problem with keeping sessions in IE (I use SSL) - El Forum - 04-09-2009

[eluser]Renex[/eluser]
thank you very much. It seems it works. However there are a lot of differences between the 2 libraries, even function names. For example I had to change the sess_destroy() function in my code to destroy(). Are there any other changes I have to do? It says nothing about changes in config.php file. Are there none?

Thank you for your help