Converted homepage to use sessions.