<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>It's hard to summarize so much background.  My application has an automated build via vagrant for local development.  This vagrant environment works as intended on the chrome browser:</div><div><br></div><div>- <a href="https://github.com/jeff1evesque/machine-learning/pull/2867#issuecomment-272431783">https://github.com/jeff1evesque/machine-learning/pull/2867#issuecomment-272431783</a></div><div><br></div><div>The docker environment (currently) is for automated unit tests, handled by Travis CI.  But, the build is failing with redis, when integrated with the flask session:</div><div><br></div><div>- <a href="https://travis-ci.org/jeff1evesque/machine-learning/builds/191619024#L3803">https://travis-ci.org/jeff1evesque/machine-learning/builds/191619024#L3803</a></div><div><br></div><div>I spoke to @notdaniel in #pocoo, and he's been really helpful.  He helped me with the working vagrant environment.  But, last night he told me to try to explicitly define redis strict session, similar to the way my application uses it, in other places.</div><div><br></div><div>My application uses redis in other contexts, like generating model, then serializing it into redis, so it can be used for future predictions, when queried from redis, the. unserialized.  I have unit tests that have been integrated into Travis CI, which tests this.  This feature has been in place for some time, so I know redis works within my application for other needs.</div><div><br><br><div>Thank you,<div><br></div><div>Jeff Levesque</div><div><span style="background-color: rgba(255, 255, 255, 0);"><a href="https://github.com/jeff1evesque">https://github.com/jeff1evesque</a></span></div></div></div><div><br>On Jan 14, 2017, at 9:33 AM, Anthony Ford <<a href="mailto:ford.anthonyj@gmail.com">ford.anthonyj@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Have you checked the offical Flask plugin, Flask-Session?<div><br></div><div>It has support for Redis, among other backends. Can be found here: <a href="https://pythonhosted.org/Flask-Session/">https://pythonhosted.org/Flask-Session/</a></div><div><br></div><div>That being said, have you tested the redis server outside your application? Are you sure you can connect to it?</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Anthony Ford,<br>KF5IBN,<div><a href="mailto:ford.anthonyj@gmail.com" target="_blank">ford.anthonyj@gmail.com</a></div></div></div></div>
<br><div class="gmail_quote">On Fri, Jan 13, 2017 at 11:55 PM, Jeffrey Levesque via Flask <span dir="ltr"><<a href="mailto:flask@python.org" target="_blank">flask@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I'm trying to integrate redis with flask's session. My motivation are redis being more secure than the standard cookie implementation, and slightly better overall performance.<br>
<br>
I posted an issue on flasks official github repository, regarding the exact details:<br>
<br>
- <a href="https://github.com/pallets/flask/issues/2150" rel="noreferrer" target="_blank">https://github.com/pallets/<wbr>flask/issues/2150</a><br>
<br>
However, the issue was closed, and I was recommended this email list.  If someone has implemented redis with flask's session, or have ideas, would you mind assisting?<br>
<br>
<br>
Thank you,<br>
<br>
Jeff Levesque<br>
<a href="https://github.com/jeff1evesque" rel="noreferrer" target="_blank">https://github.com/<wbr>jeff1evesque</a><br>
______________________________<wbr>_________________<br>
Flask mailing list<br>
<a href="mailto:Flask@python.org">Flask@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/flask</a><br>
</blockquote></div><br></div>
</div></blockquote></body></html>