Monday, March 4, 2013

Re: How can I use CakePHP on Heroku without getting logged out everytime I do an update?

Instead of Memcache you should use Memcached that supports Heroku SASL auth.
i.e https://github.com/kamisama/CakePHP-Memcached-Engine

- extend this engine, add auth option http://www.php.net/manual/en/memcached.setsaslauthdata.php
here https://github.com/kamisama/CakePHP-Memcached-Engine/blob/master/MemcachedEngine.php#L99
using Heroku environment vars and off you go

--or you can use Redis engine that supports auth/password

On Monday, March 4, 2013 1:49:46 AM UTC+1, Shahruk Khan wrote:
Yes, how would I do that? Memcache on Heroku requires a server/username/password but CakePHP doesn't seem to support a username.

On Sunday, March 3, 2013 7:24:48 PM UTC-5, Thiago Belem wrote:
Maybe storing the session on the database or with memcache?

--
Thiago Belem
Desenvolvedor
Rio de Janeiro - RJ - Brasil

Assando Sites - Curso online de CakePHP


On Sun, Mar 3, 2013 at 9:10 PM, Shahruk Khan <shahru...@gmail.com> wrote:
Essentially, I host a CakePHP site on Heroku (http://theboxngo.com), but whenever I do a Git push to update the site, all my users get logged out.

I'm assuming it has to do with the /tmp folder which gets refreshed everytime you do an update on Heroku. How can I work around this issue?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com.
To post to this group, send email to cake...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: