selfcontained[web development]

Articles tagged with "adroit" (2)

New project live, and new server

Tuesday November 6, 2007
By Brad Harris

After a lot of work on my part, and on the owners, a project I've been working on for awhile went live. Pujbaby.com went live this weekend. Congratulations to them, and I'm glad to have this project go live. We have more work to do, but they now have their online store in production.

pujbaby.com

Part of getting pujbaby.com live was acquiring a new server from MediaTemple. We went with their Dedicated Virtual Server, and so far I've really been impressed with it. I haven't moved all my sites over to it yet, but its been performing much better than the Grid Server account we've been using (which performs quite well considered the cost and features provided). If you're looking to upgrade your hosting environment, but keep the costs relatively low, then definitely check it out (no i'm not getting any referral bonuses :) ).

PHP Sessions in the db

Thursday May 3, 2007
By Brad Harris

I read an article today that I thought was great, and may be the answer to some oddities I've experienced lately. I host my sites on a MediaTemple GridServer account. Occasionally, as I'm logged into a site I've done, my session seems to just get blown away, and I lose my log in credentials. I noticed this recently as I was working on AdroitAuthentication class and trying to clean up how I was handling user authentication. I added in cookie handling to allow automatic logins if desired, and this seems to have alleviated the problem I was having with dissapearing sessions. Anyways, back to the article I read...

Storing PHP Sessions in a Database

This article described how a common problem with a multiple server environment, which helps for load balancing, is that sessions in PHP are by default stored on the hard disk. As you bounce around servers from load balancing, those files may not get copied with you, thereby causing your session to either be non-existent, or stale. A solution is to change PHP to use the database for sessions instead. Its a great article, and I'm going to give it a shot tonight and make it a feature in Adroit php framework. After excitingly discussing this with a co-worker of mine, he smiled at me and said he wouldn't comment on how Rails has that built into it already. Its funny how the more I develop Adroit, the more Rails-like features I find myself implementing... One day I'll give Rails a shot, but I really love PHP and without people pushing the envelope with it it won't progress as a language.