Skip to Main Content
Secure Development for Mobile Apps
book

Secure Development for Mobile Apps

by J. D. Glaser
October 2014
Intermediate to advanced content levelIntermediate to advanced
472 pages
10h 44m
English
Auerbach Publications
Content preview from Secure Development for Mobile Apps
165
12
profeSSIonAl exceptIon
And error HAndlIng
e first rule of professional, modern PHP error handling is that d i e(e r r o r()) is
dead. It has no benefits to offer and works against a positive user experience as well
as undermining security by revealing system details to untrusted sources. PHP has
two error reporting systems in place, Errors and Exceptions. Each produces its own
messages, and both need to be captured, privately logged, and never revealed as raw
data to the user.
Good error management consists of at least three actions.
1. Capture error information
2. Log error and file details to a private log
3. Implement custom directions for users
In order to capture error information, errors need to be checked for. Simple as that ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Developing with Web Standards

Developing with Web Standards

John Allsopp
Mobile Cloud Computing

Mobile Cloud Computing

Dijiang Huang, Huijun Wu

Publisher Resources

ISBN: 9781482209037