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:
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
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Apache::Session problem update...
by Anonymous Monk on Dec 29, 2002 at 00:17 UTC | |
by iguanodon (Priest) on Dec 29, 2002 at 13:55 UTC | |
Re: Apache::Session problem update...
by mt2k (Hermit) on Dec 29, 2002 at 00:21 UTC | |
by powerhouse (Friar) on Dec 30, 2002 at 03:00 UTC | |
by mt2k (Hermit) on Dec 30, 2002 at 03:31 UTC | |
by Anonymous Monk on Jan 01, 2003 at 06:40 UTC |
Back to
Seekers of Perl Wisdom