ICANN认证国际域名顶级注册机构
网站建设,域名注册,空间租用,软件销售,广告设计 域名注册,空间租用, 网站建设,东莞网页设计,域名注册,网站推广,网站开发,网页设计 网站推广,,百度推广,新浪推广,雅虎推广,网易推广 标志设计,画册设计,包装设计,VI策划,企业形象顾问 连邦软件加盟店,提供销遥行,管家婆,速达,用友ERP,诺顿等软件报价及销售 建站必读 腾达网络,上网帮助中心, 腾达为东莞等地,提供网站建设,网站推广,广告设计,软件销售等优质服务!
建站必读


 
 
当前位置:首页 -> 建站必读 -> ASP技术
让Session对象在不同域名下实现共享
There is a general belief among developers that session state maintenance is always against one

domain / site. And therefore one can not maintain session state across different domains. Usually there is

no such requirement to maintain session state across different domains. But of late due to increase in the

scope of web based applications developers feel the need to share the session state with other domains.

The other domain may be a sister concern of the same company, or may be the B2B partner. So the question

arises how one can share the session variables across other domains easily and safely.



--------------------------------------------------------------------------------







How to share Session variables across Domains





Introduction

There is a general belief among developers that session state maintenance is always against one

domain / site. And therefore one can not maintain session state across different domains. Usually there is

no such requirement to maintain session state across different domains. But of late due to increase in the

scope of web based applications developers feel the need to share the session state with other domains.

The other domain may be a sister concern of the same company, or may be the B2B partner. So the question

arises how one can share the session variables across other domains easily and safely.







Sharing Session variables using aSMS



Configure aSMS





Sharing Session variables across domains is very easy using aSMS. aSMS Standard and Advanced both

support sharing session variables. Lets assume two different domains mydomain1.com and mydomain2.com. And

the requirement is to share the session variables between mydomain1.com and mydomain2.com. For simplicity

sake lets assume one webserver each for mydomain1.com and mydomain2.com. (It’s also possible so share

session variables between different domains hosted on same webserver). So www.mydomain1.com points to

webserver of domain1 and www.mydomain2.com points webserver of mydomain2.com.



Install aSMS on both webservers. Both aSMS should share a common LDAP server to share session variables.

Lets assume that common LDAP server be ldap.mydomain.com. On the webserver of mydomain1.com, open the aSMS

Admin Console.



For the,



LDAP Path enterLDAP://ldap.mydomain.com:1002/o=mydomain/ou=Members

LDAPAdminentercn=Administrator,ou=Members,o=mydomain



Enter the Admin Password. Set your Session Time out duration. If you want to support cookies then set

Support Cookies to True.









Click ‘Test LDAP Source’ button. If it returns ‘Successful’ Then aSMS has been configured successfully

on the webserver of mydomain1.com.









Do the same on the webserver of mydomain2.com. Take care to enter the same LDAP path

(LDAP://ldap.mydomain.com:1002/o= mydomain/ou=Members)for the webserver of mydomain2.com. This way we

ensure that aSMS of both webservers point to the same LDAP Server. Test LDAP connection by clicking ‘test

LDAP source’ button. If it returns successful then aSMS has been configured properly on webserver of

mydomain2.com also and they both point to the same LDAP server.







Start Session on Webserver of mydomain1.com





One can use the functions.asp (link to function.txt) given in the sample files and include this file in

all asp pages. If functions.asp has been used then Session can be started by just calling SessionStart

function on the default.asp of mydomain1.com webserver.



If function.asp is not used, then following code can be used to start the session in default.asp page



< %



Set objSession = Server.CreateObject("Session.Management")



objSession.SessionStart()



Set objSession = nothing



% >



To assign session variables i
 
 
本站关键词:
|东莞网页服务|东莞网站公司|东莞企业邮箱|东莞平面设计|东莞产品推广|网站建设公司|网站开发 东莞|网络公司 东莞|东莞做网站|东莞连邦软件|网页设计公司|东莞软件销售||东莞网页服务|东莞网站公司|东莞企业邮箱|东莞平面设计|东莞产品推广|网站建设公司|网站开发 东莞|网络公司 东莞|东莞做网站|东莞连邦软件|网页设计公司|东莞软件销售||东莞网页服务|东莞网站公司|东莞企业邮箱|东莞平面设计|东莞产品推广|网站建设公司|网站开发 东莞|网络公司 东莞|东莞做网站|东莞连邦软件|网页设计公司|东莞软件销售||东莞网页服务|东莞网站公司|东莞企业邮箱|东莞平面设计|东莞产品推广|网站建设公司|网站开发 东莞|网络公司 东莞|东莞做网站|东莞连邦软件|网页设计公司|东莞软件销售||东莞网页服务|东莞网站公司|东莞企业邮箱|东莞平面设计|东莞产品推广|网站建设公司|网站开发 东莞|网络公司 东莞|东莞做网站|东莞连邦软件|网页设计公司|东莞软件销售||东莞网页服务|东莞网站公司|东莞企业邮箱|东莞平面设计|东莞产品推广|网站建设公司|网站开发 东莞|网络公司 东莞|东莞做网站|东莞连邦软件|网页设计公司|东莞软件销售||东莞网页服务|东莞网站公司|东莞企业邮箱|东莞平面设计|东莞产品推广|网站建设公司|网站开发 东莞|网络公司 东莞|东莞做网站|东莞连邦软件|网页设计公司|东莞软件销售||东莞网页服务|东莞网站公司|东莞企业邮箱|东莞平面设计|东莞产品推广|网站建设公司|网站开发 东莞|网络公司 东莞|东莞做网站|东莞连邦软件|网页设计公司|东莞软件销售||东莞网页服务|东莞网站公司|东莞企业邮箱|东莞平面设计|东莞产品推广|网站建设公司|网站开发 东莞|网络公司 东莞|东莞做网站|东莞连邦软件|网页设计公司|东莞软件销售||东莞网页服务|东莞网站公司|东莞企业邮箱|东莞平面设计|东莞产品推广|网站建设公司|网站开发 东莞|网络公司 东莞|东莞做网站|东莞连邦软件|网页设计公司|东莞软件销售||东莞网页服务|东莞网站公司|东莞企业邮箱|东莞平面设计|东莞产品推广|网站建设公司|网站开发 东莞|网络公司 东莞|东莞做网站|东莞连邦软件|网页设计公司|东莞软件销售||东莞网页服务|东莞网站公司|东莞企业邮箱|东莞平面设计|东莞产品推广|网站建设公司|网站开发 东莞|网络公司 东莞|东莞做网站|东莞连邦软件|网页设计公司|东莞软件销售||东莞网页服务|东莞网站公司|东莞企业邮箱|东莞平面设计|东莞产品推广|网站建设公司|网站开发 东莞|网络公司 东莞|东莞做网站|东莞连邦软件|网页设计公司|东莞软件销售||东莞网页服务|东莞网站公司|东莞企业邮箱|东莞平面设计|东莞产品推广|网站建设公司|网站开发 东莞|网络公司 东莞|东莞做网站|东莞连邦软件|网页设计公司|东莞软件销售|
域名注册 | 虚拟主机 | 网站建设 | 网站推广 | 广告设计 | 帮助中心 | 软件中心 | 关于腾达
东莞市腾达信息工程有限公司      本站网络实名: 东莞网站建设
地址:东莞市新城市中心区第一国际B座610   邮编:523007
电话:0769-22026071 22026072 传真:0769-22026076 24小时服务热线:13712032014
© 2002~2005 腾达网络   版权所有