Has anybody used this successfully? ________________________________ From: Duncan Garland [duncan.garl...@motortrak.com] Sent: 17 October 2013 10:05 To: The elegant MVC web framework Subject: [Catalyst] change_session_id
Hi, Is there a trick to using change_session_id to change the session id on a successful logon? It seems to correctly change everything. You can successfully print the old session id and the new session id, and view the contents of the new session. However, DBIC trips up when writing the final session data. It tries to use the old session id. DELETE FROM mbfl2_sessions WHERE ( id = ? ): 'session:bc58aff5ce5e8ba3a90402c0b57a9d5bcba8b532' DELETE FROM mbfl2_sessions WHERE ( id = ? ): 'flash:bc58aff5ce5e8ba3a90402c0b57a9d5bcba8b532' UPDATE mbfl2_sessions SET expires = ?, session_data = ? WHERE ( id = ? ): '1382007089', 'BQgDAAAACwoHZGVmYXVsdAAAAAxfX3VzZXJfcmVhbG0IfwAAAAhub19jb3VudAoRMjY4NTk5XzEz ODE5OTk4NzEAAAANdGVtcF9xdW90ZV9pZAQDAAAAAAAAAApqYXZhc2NyaXB0BAMAAAAKBAMAAAAB CgdaNDI5MzkzAAAAFXJlZ2lzdGVydXNlci9yZWdpc3RlcgAAAB9tYmZsMjo6Q29udHJvbGxlcjo6 UmVnaXN0ZXJVc2VyBAMAAAABCgdaOTM2NjM1AAAAFWRpYWdub3N0aWNzL3Nob3dfZm9ybQAAAB5t YmZsMjo6Q29udHJvbGxlcjo6RGlhZ25vc3RpY3MEAwAAAAEKB1oxMTM1ODgAAAAMbG9naW4vaW5k ZXh4AAAAGG1iZmwyOjpDb250cm9sbGVyOjpMb2dpbgQDAAAAAwoHWjM3MTg1OQAAABFkZWFsZXIv Y29udGFjdF91cwoHWjA3NjA1OAAAABlkZWFsZXIvb2ZmaWNpYWxfd29ya3Nob3BzCgdaODU5ODEw AAAAFmRlYWxlci9zZXJ2aWNlX29wdGlvbnMAAAAZbWJmbDI6OkNvbnRyb2xsZXI6OkRlYWxlcgQD AAAAAgoHWjE3NDE4NQAAAAZpbmRleHgKB1oyMDQ1MjAAAAAEaG9tZQAAABdtYmZsMjo6Q29udHJv bG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gVBZG1pbgAAAAhmb3JlbmFt ZQoTMjAxMC0xMi0wMiAxMToyMDo1MgAAAAxkYXRlX2NyZWF0ZWQFAAAABGhlYXIFAAAACWRhc2hf b25seQodZHVuY2FuLmdhcmxhbmRAbW90b3J0cmFrMi5jb20AAAAFZW1haWwFAAAAC25vdGJ5X3Bo b25lCitlckVGR1J4QVRhSE1XQWpwZEg5bTVjczYxdEZGTGZoNkpVZXJ5NjRpMnZvAAAACHBhc3N3 b3JkCgMxMjEAAAACaWQFAAAAD2FkcF9jdXN0b21lcl9pZAoBTgAAAAdpc19wb29sBQAAAApub3Ri eV9wb3N0CgMxMjEAAAAKY2hhbmdlZF9ieQoTMjAxMy0xMC0xNCAxMzoxMTo1MwAAAAxkYXRlX3Vw ZGF0ZWQFAAAAC25vdGJ5X2VtYWlsCgFZAAAAD2p1c3RfY2hhbmdlZF95bgoFYWRtaW4AAAAIdXNl cm5hbWUKBUFkbWluAAAAB3N1cm5hbWUKAU4AAAAKZGVsZXRlZF95bgUAAAASYWRwX3N0YXR1c19t ZXNzYWdlCgExAAAAEWhhc19oYXNoX3Bhc3N3b3JkBQAAAAlub3RieV9zbXMKAVkAAAAWYWRwX2N1 c3RvbWVyX3RlbXBfZmxhZwoCTXIAAAAFdGl0bGUKAVMAAAAEdHlwZQAAAAZfX3VzZXI= ', 'session:bc58aff5ce5e8ba3a90402c0b57a9d5bcba8b532' [17/Oct/2013:09:51:29] ERROR Catalyst::__ANON__ 1968 - Caught exception in engine "Can't update mbfl2::Model::DB::Mbfl2Session=HASH(0xb6f6948): row not found at /usr/share/perl5/DBIx/Class/Schema.pm line 1088 DBIx::Class::Schema::throw_exception('MBFL2SCHEMA=HASH(0x9ba66c0)', 'Can\'t update mbfl2::Model::DB::Mbfl2Session=HASH(0xb6f6948):...') called at /usr/share/perl5/DBIx/Class/ResultSource.pm line 1982 DBIx::Class::ResultSource::throw_exception('DBIx::Class::ResultSource::Table=HASH(0x9cade90)', 'Can\'t update mbfl2::Model::DB::Mbfl2Session=HASH(0xb6f6948):...') called at /usr/share/perl5/DBIx/Class/Row.pm line 1460 DBIx::Class::Row::throw_exception('mbfl2::Model::DB::Mbfl2Session=HASH(0xb6f6948)', 'Can\'t update mbfl2::Model::DB::Mbfl2Session=HASH(0xb6f6948):...') called at /usr/share/perl5/DBIx/Class/Row.pm line 506 Is there something I need to set immediately after calling change_session_id? Thanks
_______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/