| Author |
Message |
p17blo Regular


Joined: Jul 27, 2007 Posts: 77
|
Posted:
Fri Aug 24, 2007 2:09 am |
|
Hi,
I am having cookie conflicts that are causing a pre-existing part of my site not to function, but only if the visitor has hit the RN pages first.
If the visitor goes directly to an existing subdirectory no problem
If the visitor goes to my Index page containing RN and then on to the sub-directory I end up with a blank page
If the visitor cleans cookies out and the hits refresh, no problem at all.
This has only become a problem when I moved my RN site online so:
Apart from within the forum are there any other places that a cookie is set (I am guessing yes) and if so what control do I have over them and is there any suggestions about what should be changed to avoid a conflict
Paul |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Fri Aug 24, 2007 7:01 am |
|
Does this sub-directory contain non-Nuke code that checks for cookies? |
|
|
|
 |
p17blo Regular


Joined: Jul 27, 2007 Posts: 77
|
Posted:
Fri Aug 24, 2007 9:07 am |
|
Yes, the sub-directory contains non-Nuke code that does check for cookies.
Paul |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Fri Aug 24, 2007 9:35 am |
|
I'm no cookie expert, so take this with a grain of salt. You aren't running phpBB in that subdirectory are you? You can change the name of your forums cookie in the Admin Panel / Forums. But if you haven't hit your forums that cookie probably isn't causing problems. It sounds more like you'll want to modify the code in the subdirectory to use a different cookie name, or set the path for which the cookies it needs are valid. See the php.net page for setcookie(). |
|
|
|
 |
p17blo Regular


Joined: Jul 27, 2007 Posts: 77
|
Posted:
Fri Aug 24, 2007 10:03 am |
|
Well I am actually running PHPBB in ANOTHER sub directory but that is fine. The problem is nothing that is integrated or ported into Nuke
The script in that folder is ZENDed so I can't modify anything about it
Paul |
|
|
|
 |
evaders99 Moderator

Joined: Apr 30, 2004 Posts: 2852
|
Posted:
Fri Aug 24, 2007 12:28 pm |
|
You can check the phpBB Forums Configuration to make sure they are not using the same cookie name |
|
|
|
 |
p17blo Regular


Joined: Jul 27, 2007 Posts: 77
|
Posted:
Fri Aug 24, 2007 12:50 pm |
|
| evaders99 wrote: | | You can check the phpBB Forums Configuration to make sure they are not using the same cookie name |
The PHPBB isn't a problem, it works fine. It is another script in another sub-directory
Paul |
|
|
|
 |
montego Site Admin

Joined: Aug 29, 2004 Posts: 7481 Location: Arizona
|
Posted:
Sat Aug 25, 2007 12:04 am |
|
Well, it looks like the non-phpBB side of nuke is using "admin", "user" and "lang" for cookie names. So, check the cookie code in your other scripts to see what names it is using. You may just be stuck with having to change code for one or the other so that they will work together. That is just the nature of the "web game" when you have disparate systems trying to co-habitate nicely and they do not always do... just like in the human realm... |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Sat Aug 25, 2007 12:29 pm |
|
Also read the link on setcookie(). You can set a path for which that cookie is valid to help avoid conflicts. |
|
|
|
 |
|
|
|
|