Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
CodeIgniter 2 Cookbook

You're reading from   CodeIgniter 2 Cookbook As a PHP developer, you may have wondered how much difference the Codeigniter framework might make when creating web applications. Now you can find out with a host of customizable recipes ready to insert into your own work.

Arrow left icon
Product type Paperback
Published in Dec 2013
Publisher Packt
ISBN-13 9781782162308
Length 306 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Robert Foster Robert Foster
Author Profile Icon Robert Foster
Robert Foster
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

CodeIgniter 2 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. CodeIgniter Basics FREE CHAPTER 2. User Management 3. Creating E-commerce Features 4. Email, HTML Table, and Text Libraries 5. Managing Data In and Out 6. Working with Databases 7. Creating a Secure User Environment 8. Calendaring, Right Place, and Right Time 9. Extending the Core 10. Working with Images 11. SEO, Caching, and Logging Index

Using HTTPS with CodeIgniter


Using SSL is a huge topic, as is online security in general; therefore, I strongly recommend you read widely about web security (because this recipe isn't really a security primer). However, if you specifically wish to protect certain pages with an SSL certificate, there is an easy way to do it. We can create a CodeIgniter helper file to toggle SSL support on or off. Let's see how to do it.

Getting ready

I'm sure you know of the benefits of requiring certain pages in a website to be protected with an SSL certificate. The sight of that green address bar and little padlock can go a long way in allaying a user's concerns with entering data in a website. CodeIgniter doesn't come with SSL support built-in; however, it is perfectly easy to implement using a simple helper. Obviously, SSL support isn't the be-all and end-all of website security, and should always be implemented alongside other security measures to mitigate against unwanted visitors.

How to do it...

We're...

lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
CodeIgniter 2 Cookbook
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at R$50/month. Cancel anytime
Modal Close icon
Modal Close icon