处理多个Cookie [英] Handiling multiple cookies
本文介绍了处理多个Cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个域,例如X.com
和 Y.edu.in
.
X是核心应用程序,具有Web服务,数据库连接等.
Y是另一个应用程序,它使用X中的Web服务来实现各种功能.还可以通过使用X中的Web服务来完成Y中的身份验证.身份验证工作正常.但是要从Y访问X中的任何其他功能,我必须提交Y时没有的Y的cookie.
谁能帮我解决这个问题..
在此先感谢...
I have two domains, say X.com
and Y.edu.in
.
X is the core application, which has web services, database connections etc.
Y is another application, which uses the web service in X for various functions. The authentication in Y is also done by using the web service in X. The authentication is working fine. But in order to access any other features in X from Y, I have to submit the cookie of Y which I don''t have when I am in Y.
Can anyone please help me to solve this issue..
Thanks in advance...
推荐答案
我认为您需要的是此
您可以从服务器端代码或javascript代码读/写cookie.
如果您选择使用服务器端代码,请遵循以下链接
http://www.beansoftware.com/ASP.NET-FAQ/Read-Write- Cookie.aspx [ ^ ]
或
http:///www.mindstick.com/Articles/60de760f-be8e-4ad8-8ec8-207aef746ea1/?How%20to%20read%20and%20write%20Cookies%20in%20ASP%20Net [ http://techpatterns.com/downloads/javascript_cookies.php [ http://www.quirksmode.org/js/cookies.html [Hi,
You can read/write cookie either from server side code or from javascript code.
If you choose to use server side code follow the links below
http://www.beansoftware.com/ASP.NET-FAQ/Read-Write-Cookie.aspx[^]
or
http://www.mindstick.com/Articles/60de760f-be8e-4ad8-8ec8-207aef746ea1/?How%20to%20read%20and%20write%20Cookies%20in%20ASP%20Net[^]
if you want to use cookie from javascript you will get good reference from below links
http://techpatterns.com/downloads/javascript_cookies.php[^]
or
http://www.quirksmode.org/js/cookies.html[^]
Hope this will help.
这篇关于处理多个Cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文