如何在多台服务器上共享Session(PHP/JSP/ASP.NET)以及单点登录(SSO)

  1. 云栖社区>
  2. 博客>
  3. 正文

如何在多台服务器上共享Session(PHP/JSP/ASP.NET)以及单点登录(SSO)

杨振平 2015-02-26 15:32:55 浏览701
展开阅读全文

如何在多台服务器上共享Session(PHP/JSP/ASP.NET)以及单点登录(SSO)

 

Apache Session复制:


http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html

 

使用Memcached来共享PHP Session:


https://www.digitalocean.com/community/tutorials/how-to-share-php-sessions-on-multiple-memcached-servers-on-ubuntu-14-04
http://www.justincarmony.com/blog/2010/09/15/sharing-sessions-across-multiple-servers-with-memcache/
http://www.bitvolution.com/session-sharing-in-php-the-easy-way

 

使用Coherence这个工具来共享JSP Session:


https://blogs.oracle.com/muraliveligeti/entry/coherence_session_sharing_between_applications

 

通过设置session replication 和session sticky来共享多台J2EE服务器集群式的Session共享:


https://code.google.com/p/memcached-session-manager/wiki/SetupAndConfiguration

 

通过共享session数据文件或者实现一个数据库session处理来共享:


http://stackoverflow.com/questions/16243450/share-a-session-across-multiple-servers-with-different-domains

 

关于共享Session:不同后台存储使用不同的负载均衡策略:


http://serverfault.com/questions/32421/how-is-session-stickiness-achieved-across-multiple-web-servers

 

通过WebLogic Session描述符的sharing-enabled配置来共享JEE Web应用程序Session:


https://technology.amis.nl/2012/01/18/sharing-session-state-between-jee-web-application-through-weblogic-session-descriptor-of-sharing-enabled/

 

通过 Shiro session manager和XAP(Java/.NET)来共享全局HTTP Session:


http://blog.gigaspaces.com/global-http-session-sharing/
http://shiro.apache.org/session-management.html

 

共享ASP.NET或者ASP应用程序:


http://msdn.microsoft.com/en-us/library/aa479313.aspx
http://www.codeproject.com/Articles/27090/Sharing-Session-Across-Applications
http://forums.asp.net/t/1234883.aspx
http://blogs.lessthandot.com/index.php/webdev/serverprogramming/aspnet/sharing-asp-net-session-state-between-ap/
http://galratner.com/blogs/net/archive/2011/06/01/sharing-memory-session-between-servers.aspx

 

存储在SQL Server数据库里来共享Session:


http://www.developer.com/net/asp/article.php/3595766/Storing-Session-State-in-a-SQL-Server-Database.htm

 

存储在Cookies里通过SSO(Single Sign On)来共享数据


http://en.wikipedia.org/wiki/Single_sign-on
http://www.opengroup.org/security/sso/sso_intro.htm
http://www.authenticationworld.com/Single-Sign-On-Authentication/

网友评论

登录后评论
0/500
评论
杨振平
+ 关注