Forum Moderators: open

Message Too Old, No Replies

cookie problem - please help

cookie iframe problem

         

ortora

2:49 pm on May 3, 2005 (gmt 0)



Hello everyone, I have an ASP chat inside an IFRAME. The ASP file is hosted on a different domain than the main website.
When the user logs on by entering their name, the chat stores a cookie so the user can start posting messages. However since the cookie is stored using the main domain (not the ifram), the chat doesn't recognise it anymore and keeps asking to log on.

How can I get it to go and check the cookie in the main domain instead of the iframe domain and then go back and verify it with the chat?

Your help is appreciated :)

Here is the coding used by the chat to recognise the cookie:

<%
'/// Get Nick Name
nick=request("nick")
xlaSBnick=request.cookies("xlaSBnick")"
if nick<>"" then
response.cookies("xlaSBnick")=nick
xlaSBnick=nick
end if
if xlaSBnick="" then
formproperties="action=bottomframe.asp onsubmit='return validatenick();'"
else
formproperties="action=receiveframe.asp target=xlaSBreceive onsubmit='return shout();'"
end if
%>

mrMister

11:38 am on May 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here is the coding used by the chat to recognise the cookie:

You'll need to post the code used to set the cookie (on the outer frame) as well before anyone can help you.