From: Boris Z. <bo...@am...> - 2002-11-25 12:57:56
|
Hi Anton, Am Montag, 25. November 2002 12:25 schrieb Anton Permyakov: [...] > > > I think it is because of sessions is not stored correctly? But why? > > > > If it is really stored wrong, then it may be a error in locking or > > Storable > > > anything changed there? > > > > what shows a dump of your session object? > > Here is it: what are you using to dump the object's? please redo the dump with Data::Dumper for me. also it is nice for the tracking, if you add a field like counter. use Data::Dumper; $model->session->{counter}++; warn Dumper($model->session); > > session before $model->redirect: > > SESS: do { > my $a = { > BASKET => bless({ > ITEMS => { "71757" => 1 }, > RET_URL => undef, > TOTAL_ITEMS => 0, > TOTAL_PRICE => 0, > }, "CN::Basket"), > BasketItems => 20, > ItemsList => bless({ > CURRENT_SIZE => 63, > HAS_MORE => 63, > NEXT_SIZE => 63, > PREV_SIZE => 63, > ROWS => 63, > SET_SIZE => 63, > TOTAL_ROWS => 9, > query_params => [ > "price1000, category_id", > ], > query_values => [679], > search_meth => "featuredInShop", > search_obj => "CN::Item", > }, "Page::RecordSet"), > PageItems => 'fix', > TEST => 'fix', > _session_id => 'fix', > }; > $a->{PageItems} = $a->{BasketItems}; > $a->{TEST} = $a->{BasketItems}; > $a->{_session_id} = $a->{BasketItems}; > $a; > } > > and in the start of redirected page: > > SESS: do { > my $a = { > BASKET => bless({ > ITEMS => { "71757" => 1 }, > RET_URL => undef, > TOTAL_ITEMS => 0, > TOTAL_PRICE => 0, > }, "CN::Basket"), > BasketItems => 20, > ItemsList => bless({ > CURRENT_SIZE => 63, > HAS_MORE => 63, > NEXT_SIZE => 63, > PREV_SIZE => 63, > ROWS => 63, > SET_SIZE => 63, > TOTAL_ROWS => 9, > query_params => [ > "price1000, category_id", > ], > query_values => [679], > search_meth => "featuredInShop", > search_obj => "CN::Item", > }, "Page::RecordSet"), > ORDER_URL => 'fix', > PageItems => 'fix', > TEST => 'fix', > _session_id => 'fix', > }; > $a->{ORDER_URL} = $a->{BasketItems}; > $a->{PageItems} = $a->{BasketItems}; > $a->{TEST} = $a->{BasketItems}; > $a->{_session_id} = $a->{BasketItems}; > $a; > } > > i wonder why > > $a->{ORDER_URL} = $a->{BasketItems}; > $a->{PageItems} = $a->{BasketItems}; > $a->{TEST} = $a->{BasketItems}; > $a->{_session_id} = $a->{BasketItems}; > $a; > > ??? > > and why ItemList contains > > CURRENT_SIZE => 63, > HAS_MORE => 63, > NEXT_SIZE => 63, > PREV_SIZE => 63, > ROWS => 63, > SET_SIZE => 63, > > it is very strange to me... it should not be so... > may be realy i have some troubles in session storing? > > Thank you, > Anton. > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Pagekit-users mailing list > Pag...@li... > https://lists.sourceforge.net/lists/listinfo/pagekit-users -- Boris |