in reply to Re^3: Cookie->fetch problem
in thread Cookie->fetch problem

Hi

When the the page with the iframe is sent to the client, the call to get the cookies returns 0 if no cookies. That causes creation of a new session and the MD5 data being sent with the iframe response so a SID of 0 is just a flag. The call to set the cookie is:

#Set session cookie on client SetUserSessionCookie('CGISESSID', $sid);

The SID being the MD5 hash of the username and password.

Replies are listed 'Best First'.
Re^5: Cookie->fetch problem
by huck (Prior) on Mar 10, 2017 at 00:09 UTC

    you need to understand what i said in Re^5: Cookie->fetch problem about how CGI::Session gives you back a new INTERNAL sessionid if it cant find the sessionid you give it or that session has expired. A SESSIONID IT COMPUTES ITSELF!!!
    http://search.cpan.org/~markstos/CGI-Session-4.48/lib/CGI/Session.pm
    If it fails, will create a new session id, which will be accessible through id() method.

    id()

    Returns effective ID for a session. Since effective ID and claimed ID can differ, valid session id should always be retrieved using this method.