mizi wrote on 05 jul 2006 in microsoft.public.inetserver.asp.general:
Hi,
Please quote on usenet, this is not email.
thanks for your reply. The two asp pages are on different servers.
what I try to do is automatic login. eg., user A has logged in at
Server A. some links on web pages of server A point to server B. so
when server B detected a visitor is coming from server A, it will
check if the user has logged in Server A. if logged in, then set the
user also logged in Server B.
What I thought before is remote.asp is executed on Server B, so it can
retrive session and cookies through it. but the fact has proved I'm
wrong. I'm wondring is it possible to retrieve sessions and cookies of
a remote server?
A "session" in the ASP sense needs a cookie that is kept on the
client/browser and defines the session. Session variables reside on the
server, but are only available to pagest that show the session cookie.
So if you fetch a page of another server on a server
[by asp code Server.CreateObject("MSXML2.ServerXMLHTTP")],
the session cookie should be on that server too without
any browser on that server. That seems impossible under ASP.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)