PDA

View Full Version : cookie problem


ortora
05-03-2005, 05:02 PM
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 iframe), 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
%>

JamieR
05-03-2005, 05:05 PM
This is an ASP problem and should me moved to the apprioate forum :)

ortora
05-03-2005, 05:40 PM
sorry for putting here as well but even though the script is in ASP, i thought that cookies would be more of a generic issue and wanted to make sure the right people would read it :) doesn't necessarily have to be ASP does it? ;)