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
235
seCure sessIon storAge
And if it does, it is deleted from the file system with u nlin k().
e function then returns true.
gc() Whenever gc() is called, approximately once every several hundred session
starts, session files are searched based on last access time, and deleted if time is older
than passed in expiration time.
First, glob is used to build an array of the files in the session directory, which is used
in a foreach loop to process each file.
foreach (glob($sessionPath) as $sessionFile)
en filetim e() is used to check file age and determine if the file is old enough
to expire and delete.
if (filemtime($sessionFile) + $maxLife < time())
If the file should be expired, the file is checked one last time to make sure it still
exists with
if(is_file ...
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