Author |
Topic  |
|
KeithW
Starting Member
17 Posts |
Posted - 10 August 2002 : 21:28:27
|
Dear All,
I have my forum running in an IFrame on my site which is itself running inside a Frame automatically generated by my Web Redirection service, (see code below). My site is running on Brinkster, and I have applied the modifications provided, to the Snitz source code in order for the Brinkster ASP scanner to accept them.
If I go directly to my site by using the full Brinkster URL, (ie. no redirection) everything works fine.
Any ideas?
Cheers, Keith Willis.
<HTML> <HEAD> <TITLE>MyTitle</TITLE> </HEAD> <FRAMESET ROWS="100%,*" BORDER="0" FRAMEBORDER="0" FRAMESPACING="0" FRAMECOLOR="#000000"> <FRAME SRC="http://www28.brinkster.com/myname/default.aspx" NAME="redir_frame"> </FRAMESET> <NOFRAMES> Sorry, your browser does not support frames. Please <A HREF="http://www28.brinkster.com/myname/default.aspx" TARGET=_top>go here</A> </NOFRAMES> </HTML>
|
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 10 August 2002 : 21:35:13
|
The problem is that the URL for the cookies is set to that of the forum, but the URL the cookie is checked against is that of the frame. I believe one of the solutions to keep the frame and still be able to use the cookies was to add a second domain for the cookies to use. The other solution is to get rid of the frames... |
 |
|
KeithW
Starting Member
17 Posts |
Posted - 10 August 2002 : 21:43:35
|
Then why does it work inside my IFrame? As far as I can tell there is only a problem when I access via the redirection and a new overall frame is wrapped around my site. |
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 10 August 2002 : 21:45:34
|
why don't you give a link to your site? I'd be able to see which URLs are used for the frame and iframe. Right now I'm shooting in the dark (so to speak) |
 |
|
KeithW
Starting Member
17 Posts |
Posted - 10 August 2002 : 21:47:58
|
Also if I set my Cookie to Forum and not Website shouldn't this solve the problem? (it doesn't). |
 |
|
KeithW
Starting Member
17 Posts |
Posted - 10 August 2002 : 21:57:16
|
Just found a long discussion thread on this very same issue.
TOPIC_ID=25303
As far as I can tell it was never fully resolved but there was a working hack proposed. |
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 10 August 2002 : 22:07:56
|
Is the page with the iframe on the same site as your forums? If so, there's your answer to why your forums are working inside the iframe.
As I said, frames are known to mess up the forums' login and logout functions (among other cookie-based functions). |
 |
|
KeithW
Starting Member
17 Posts |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 10 August 2002 : 22:55:02
|
Well, then that's where your problem lies. The forum looks for a cookie that it can't find because of the frameset that masks the URL. You'll have to jump out of the frameset to get the forums' cookie-based functions to work correctly. |
 |
|
KeithW
Starting Member
17 Posts |
Posted - 10 August 2002 : 23:04:54
|
I have the link to the forums set to www28.brinkster.com/netsoftds/forums/default.asp
but this is done programmatically, ie. I set the IFrame's src attribute to that URL...
document.getElementById('id_bodyFrame').src = 'http://www28.brinkster.com/netsoftds/Forums/Default.asp';
Does this mean that I should change the main page's location to www28.brinkster.com/netsoftds? This would effectively remove the cloaking. Is there anyway to retain the cloaking and still get my cookies to work? Perhaps a hard-coded modification in the Snitz code? |
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 11 August 2002 : 06:14:59
|
I haven't heard of a solution for the problems that frames give except jumping out of the frame and thereby, as you said, removing the cloaking. |
 |
|
|
Topic  |
|