Welcome Guest, Not a member yet? Register   Sign In
SSL in CodeIgnitor
#11

[eluser]got 2 doodle[/eluser]
Quote:$_SERVER[‘HTTPS’].
Yes this seems like a sane approach
Quote:2)Instead of essentially duplicating the base_url(), site_url(), and redirect() just to add an “s” to “http”, override them to add an optional “protocol” parameter. I won’t comment on anchor() or form_open() since I don’t use them.
This works when the url is essentially the same but in the case of a shared ssl certificate the url gets considerably more complicated. Or at least that was the case with my hosting service.
Quote:There shouldn’t be a need for a “secure_base_url” config value.
as above, I agree in the case of dedicated ssl certificate.

@rick jolly - thanks for your comments and an alternative approach

@rbdc - I'm glad you found my post useful

@everyone else - Note that this is my first venture into SSL, take my post with that knowledge in mind. I simply wanted to document my discoveries and subsequent solutions.

The site that this is running on now is performing as desired - visit the site here if you want to see it in action.


Messages In This Thread
SSL in CodeIgnitor - by El Forum - 11-18-2008, 12:48 PM
SSL in CodeIgnitor - by El Forum - 11-18-2008, 12:49 PM
SSL in CodeIgnitor - by El Forum - 11-18-2008, 12:51 PM
SSL in CodeIgnitor - by El Forum - 11-18-2008, 12:53 PM
SSL in CodeIgnitor - by El Forum - 11-19-2008, 06:54 PM
SSL in CodeIgnitor - by El Forum - 11-20-2008, 09:10 AM
SSL in CodeIgnitor - by El Forum - 12-02-2008, 09:14 AM
SSL in CodeIgnitor - by El Forum - 12-11-2008, 02:16 PM
SSL in CodeIgnitor - by El Forum - 01-12-2009, 06:57 PM
SSL in CodeIgnitor - by El Forum - 01-12-2009, 09:57 PM
SSL in CodeIgnitor - by El Forum - 01-13-2009, 10:04 AM
SSL in CodeIgnitor - by El Forum - 01-17-2010, 08:49 PM
SSL in CodeIgnitor - by El Forum - 02-03-2011, 08:31 AM
SSL in CodeIgnitor - by El Forum - 02-04-2011, 06:19 AM
SSL in CodeIgnitor - by El Forum - 03-10-2011, 12:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB