开发者

implement Single sign on in CakePHP project

I want to implement SSO in a CakePHP project. I will 开发者_C百科used cookies for doing this.

someone advised me to check CakePHP as there is a property that let you share session in different application using sessions.


This article might be able to help you. I have to admit that I've not had much luck in the past getting CakePHP to play nicely with another framework. The alternative is to require the other application to use CakePHP's sessions, which is typically easier if it's not itself a framework. If both are frameworks, I would recommend the first link.


I do this, I go to manage this using cookies, with native coding, as All projects share the same domain.

I make different kind of cookies which save:

  1. Key
  2. Security Hash
  3. User Data Encrypted
  4. save user last session into database to check on it
  5. Back up server for login, because if the main server down no one can login,
  6. Enable single application login in case two server are down or inaccessible.

With Some Flows, And ideas I make a good solution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜