Resolving localhost session/cookie issue