Hello, I personally prefer to use an encrypted cookie : - it does not rely on sessions - it is stored by the client browser - it is easy to implement the 'Remember me' feature - it is quite secure
Let me know if you want me to share some code ! Rémi On Thursday, 7 March 2013 13:52:54 UTC+1, Simon Males wrote: > > Actually database session is a good suggestion, if you stuck on Heroku. > > > On Mon, Mar 4, 2013 at 5:36 PM, majna <majn...@gmail.com <javascript:>>wrote: > >> 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* >>>> assando-sites.com.br <http://goo.gl/b1EEd> >>>> >>>> thiagobelem.net >>>> con...@thiagobelem.net >>>> >>>> *Skype / gTalk **»* thiago.belem.web >>>> *LinkedIn* *»* >>>> br.linkedin.com/in/**thiagobelem/pt<http://br.linkedin.com/in/thiagobelem/pt> >>>> >>>> >>>> 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<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<http://groups.google.com/group/cake-php?hl=en> >>>>> . >>>>> For more options, visit >>>>> https://groups.google.com/**groups/opt_out<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+u...@googlegroups.com <javascript:>. >> To post to this group, send email to cake...@googlegroups.com<javascript:> >> . >> Visit this group at http://groups.google.com/group/cake-php?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > Simon Males > -- 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+unsubscr...@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.