Re: [Catalyst] Session problems with IE and cookies - workaround
VT My workaround will: VT 1) Delete the old session VT 2) Create a new session VT 3) Return a dummy page, along with a new cookie and a redirect to VT site's main page There is easier workaround - just call $c-reset_session_expires on login. Why nor reset_session_expires neither extend_session_expires are not documented if they are public? ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Catalyst::Plugin::Session::Store::Memcached not correctly work with session expire
If in session expire time reached on server and but on client cookie still valid and user tries to authenticate again. After authentication succeeded Catalyst::Plugin::Session::Store::Memcached::store_session_data called to store new values which called Catalyst::Plugin::Session::session_expires to get new expiration for a key but that method finds that session expired and deletes expires: value instead of renewing one. So session: value stored but expires: only deleted and on next access stored session is expired once again. Here how it looks from memcached perspective: 7 set catalyst_session#0.02#SMDE#session:e1483bb888fc9603201210451aa0ed1b450ec8a5 1 0 229 7 STORED 7 get catalyst_session#0.02#SMDE#expires:e1483bb888fc9603201210451aa0ed1b450ec8a5 7 END 7 delete catalyst_session#0.02#SMDE#session:e1483bb888fc9603201210451aa0ed1b450ec8a5 7 DELETED 7 delete catalyst_session#0.02#SMDE#expires:e1483bb888fc9603201210451aa0ed1b450ec8a5 7 NOT_FOUND 7 delete catalyst_session#0.02#SMDE#flash:e1483bb888fc9603201210451aa0ed1b450ec8a5 7 NOT_FOUND 7 get catalyst_session#0.02#SMDE#expires:e1483bb888fc9603201210451aa0ed1b450ec8a5 7 END 7 delete catalyst_session#0.02#SMDE#session:e1483bb888fc9603201210451aa0ed1b450ec8a5 ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Problem with POST from IE and Catalyst::Engine::HTTP
Hello! When user post some form from Internet Explorer it tries to keep connection alive and for that reason after url-encoded data send additional CRLF which is not counted to Content-length header. Catalyst::Engine::HTTP ( as of version 5.7007 ) pass all data received to HTTP::Body, but parser of HTTP::Body::UrlEncoded work only if to it passed exactly content-length bytes. So parameters and body_parameters left empty. Keepalive hack (-k) does not help. Is there any way around this problem? '_body' = bless( { 'content_length' = 27, 'body' = undef, 'length' = 29, 'content_type' = 'application/x-www-form-urlencoded', 'upload' = {}, 'buffer' = 'username=testpassword=test^M ', 'param' = {}, 'state' = 'buffering' }, 'HTTP::Body::UrlEncoded' ), ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/