in reply to CGI::Session login problems

Keep in mind that after setting the cookie (with the session ID, which I'm assuming you're doing), you're not going to receive that cookie in the same request as it's been set. I'm guessing: - User logs in - You set cookie - You try to display main page - You check for session ID in cookie - Cookie not yet set, fail - User tries again, since this is a new request, the cookie you previously set now is sent to the server and the login succeeds.

Replies are listed 'Best First'.
Re^2: CGI::Session login problems
by speckled (Novice) on Mar 02, 2009 at 06:49 UTC
    Mistery solved:

    the session part was correctly configured; the problem was that I requested the login page at http://webpage/ and after the auth the login script redirected the user at http://webpage.domain. I suppose the cookie was valid only for a domain. My bad ;P