Calculate Age from Date with PHP

By Josh Sherman
3 min read
development
php

Calculating the age based on a date is a pretty simple task that can be accomplished many different ways (Google yield’s quite a few different approaches). The caveat that usually arises is that you need to factor in which side of the birthday you are on based on the day’s […]

Apple iOS 7 Beta Review

By Josh Sherman
9 min read
reviews
apple
ios

Like many people, I went ahead and upgraded my phone to the Developer Preview of Apple’s latest iOS, version 7. Days later, I’m wondering if I will be downgrading next week because of a handful of issues that I would consider to be critical defects for my own usage. It’s […]

Configuring PHP Sessions

By Josh Sherman
2 min read
development
php

Now that we know how to use sessions and have built a simple login system, let’s take a look at some options for configuring PHP sessions. Out of the box, PHP is configured to file-based sessions with a max lifetime of 1440 seconds (a mere 24 minutes). Garbage collection probability […]

PHP Login System

By Josh Sherman
5 min read
development
php
security

Following up on yesterday’s introduction to PHP Sessions, let’s talk about building a simple login system in PHP. To start, you will need to make sure that pages on your site that are behind the login page will have sessions enabled. This can be done for all of your pages […]

PHP Session Handling

By Josh Sherman
3 min read
development
php

Sessions, one of those necessary evils when building websites. They come into play whenever you need to have data available between pages on a site. These scenarios typically arise when you have login restricted areas on a site. Why do I refer to them as evil? Quite a few reasons […]