http://www.perlmonks.org?node_id=222817

powerhouse has asked for the wisdom of the Perl Monks concerning the following question:

Ok, Here is what I have done now...

Paul DuBois helped do this part, he sent me this code:

my $session_contents = "Session contents:<br />"; foreach my $key (keys (%{$sess_ref})) { $session_contents .= "Key: " . escapeHTML ($key) . " value: (" . escapeHTML ($sess_ref->attr ($key)) . ")" . "<br />"; }

I added it to the script so that it displayed on every page. When this happened, I got these results:

Here it is when I first load it:

Session contents:
Key: #<expires># value: (ARRAY(0x82b0284))
Key: _session_id value: (fd52d8aad5076259c022aa99adf602c0)

Then when I go to the login page:
Session contents:
Key: #<expires># value: (ARRAY(0x82b032c))
Key: _session_id value: (fd52d8aad5076259c022aa99adf602c0)

It's the same. Then when I login:
Session contents:
Key: c_q value: (2)
Key: country value: (USA)
Key: loggedin value: (1)
Key: postal_code value: (my_zip)
Key: lname value: (Jones)
Key: number value: (1)
Key: fname value: (Richard)
Key: street2 value: ()
Key: street3 value: ()
Key: mname value: (L)
Key: c_q_a value: (stockholm)
Key: titl value: (Mr.)
Key: _session_id value: (fd52d8aad5076259c022aa99adf602c0)
Key: phone value: (my_phone)
Key: #<expires># value: (ARRAY(0x82b06fc))
Key: nname value: (Richie)
Key: state value: (myState)
Key: city value: (my City)
Key: last_login_ip value: (myLastIP)
Key: username value: (my_username)
Key: province value: ()
Key: updates value: (1)
Key: remember_me value: (0)
Key: email value: (my email)
Key: street value: (my address)

See it does load them in there and log me in, but then if I leave the page, here is what it now has:
Session contents:
Key: #<expires># value: (ARRAY(0x82b032c))
Key: _session_id value: (fd52d8aad5076259c022aa99adf602c0)

Right back to the same old thing. The only constant is the session_id and the expires, although the expires changes every time...

What would cause that to happen?

I really don't understand.

thx,
Richard