updated everything to use cookies instead of phpsession