Archive for the ‘webmaster’ Category

Supernifty uptime monitoring

Thursday, March 24th, 2011

Having trouble connecting to Supernifty? Check our uptime stats, provided by Pingdom.

Supernifty Uptime

If at any time you encounter problems or slowness connecting to Supernifty, please let us know.

Server Upgrade

Saturday, November 6th, 2010

Server upgrade
Supernifty’s servers have recently been upgraded.

Our old server was barely coping with the load, particularly that generated by Speed Scrabble, so Supernifty is now on a faster, more powerful server.

This means a zippy, more reliable experience for everyone. If you do encounter problems, please get in touch. You may have encountered a few timeouts during the migration, but now everything appears to be great.

Finally, if you’re interested in the technical details, main components of the Supernifty architecture include:

Remember me with PHP – hack it #6

Monday, March 15th, 2010

PHP persistent sessions
“Remember me” functionality was recently implemented on the Supernifty login screens. The PHP documentation is surprisingly non-obvious so here’s how to do it.

If you’re already using the $_SESSION variable, the default is for this variable to live only for as long as the browser. Once the user closes the browser, the cookie will be deleted, and they’ll be logged out.

To remember a user across browser sessions, here’s what needs to be done.

Tell the browser to remember the session

You do this with the line:

setcookie( session_name(), session_id(), time() + 86400*30 );

This overwrites the default session cookie, with a cookie that will persist on the user’s browser for one month.

Note that since cookies are set in the headers sent to the browser, this needs to be done before writing any content to the browser.

With HTML like

<input type="checkbox" name="remember" value="remember"/>

You could have a handler like:

$remember = $_POST['remember'];
if ( isset( $remember ) && $remember == 'remember' ) {
setcookie( session_name(), session_id(), time() + 86400*30 );

Tell the server to remember the session

Bizarrely, PHP’s default session time is something ridiculous like 24 minutes.

To tell the server to remember the session for longer, you need to set some PHP environment variables, like so:

ini_set("session.gc_maxlifetime","2592000"); // 24*30 hours
session_set_cookie_params( 86400*30 );

More details about PHP’s session lifetime

With these two pieces in place, you can now implement a “remember me” checkbox on your login screen with PHP, while continuing to use the $_SESSION variable.

Site Ranking Google Gadget

Thursday, February 11th, 2010

Good news if you use Google Gadgets – Supernifty’s Site Ranking is now available as a Google Gadget.

Site Ranking Google Gadget

So you can keep track of your website’s popularity right from your home page.

Learn more about site ranking, or go check out the Site Ranking Google Gadget.

Track your website’s popularity

Monday, February 1st, 2010

Supernifty is pleased to announce a new service that enables website owners to keep track of their website’s popularity.

Alexa assigns a world ranking to all the websites on the Internet, however, they only keep historical data for the top 100,000. So if your web site is outside the hallowed few, you can easily lose track of how your site has progressed over the weeks.

Bad week for Supernifty's site rankingSupernifty’s Website Ranking Tracker can do this for you. Once you’ve signed up, Supernifty will check your website’s ranking every day, enabling you to easily see how your site performs over time.

You can also download all historical data, for further analysis.

If you’d like to see how your site is faring in its journey towards world number 1, try it out.

It’s free for a month, then if you wish to continue using the service, upgrade for a very affordable fee.