vti / mojox-session Goto Github PK
View Code? Open in Web Editor NEWSession management for Mojo
License: Other
Session management for Mojo
License: Other
flush() should either pass through the return value from the store or otherwise have some consistent and documented return values.
Both of the dispatches need to have a return; in them to make it work on latest Mojolicious v8.3, one thing i noticed is flush doesn't remove stale entries from the table so a manual cleanup needs to be done as a routine. I am thinking browsers no longer pass a expired cookie that contains the sid and so the flush cannot clean up.
When I use MojoX::Session with couchdb I get following error:
Processing request failed: Can't locate object method "new" via package
"MojoX::Session::Store::Couchdb" at /MojoX/Session.pm line 79
And indeed MojoX::Session::Store::Couchdb doesn't have a new() method so why is the _load_and_build subroutine in MojoX/Session.pm trying to call the new() on the MojoX::Session::Store::Couchdb?
Should there be a MojoX::Session::Store::Couchdb->new() method ?
Since: 6.0 2015-02-26: - Removed deprecated object-oriented Mojo::Loader API.
(Can't locate object method "new" via package "Mojo::Loader" at /home/kes/perl_lib/lib/perl5/MojoX/Session.pm line 18
Test output:
http://aimed.cc/foo.txt
Было бы очень здорово, чтобы можно было бы указать для Mojolicious::Plugin::Session что если используется Store::Dbi то dbh брать из указанного key_dbh_stash что-то типа
app->plugins->add_hook(
before_dispatch => sub {
my ($self, $c) = @_;
$session->tx($c->tx);
$session->store->dbh($c->stash($key_dbh_stash));
$c->stash($stash_key => $session);
}
);
К сожалению, я не придумал как бы это сделать наиболее красиво и универсально.
Can't locate object method "_get_content" via package "Test::Mojo" at t/plugin.t line 84.
Because the method Test::Mojo->_get_content()
is no longer available on current version of the Mojolicious.
There are two changesets:
Therefore we have to use $t->tx->res->text
instead of $t->_get_content($t->tx)
.
Mojolicious::Plugin::Session не имеет версию. И невозможно без бубна собрать окружение для проекта под Mojolicious v4.50, т.к. актуальная версия просит 5.78, а cpanm Mojolicious::Plugin::[email protected] вызывает печаль.
Хз, реально ли исправить прошлые релизы.
I know that you won't improve it or extend. But can't get the couchdb store to work I always get:
Event "read" failed for connection "IO::Socket::INET=GLOB(0xb61738)": Wrong response at /opt/local/lib/perl5/site_perl/5.8.9/Mojo/Client.pm line 630
and in my couchdb log I see the put request that creates the session document return a 500 error but I don't know why.
'PUT' /session/ff310c54325a3c54e4fac1a8379682fba9114ba8 500
Could you help? and if not, do you know how I could use couchdb with the embedded Mojolicious sessions instead?
As per subject.
Sample fail report: http://www.cpantesters.org/cpan/report/51413455
HTH&&Thanks,
(Disclaimer: this was discovered by statistical analysis, I'm not speaking as a user)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.