Forum Moderators: coopster
sitename.com/news.htm?id=324247237732
sitename.com/nextpage.htm?id=324247237732
sitename.com/anotherpage.htm?id=324247237732
news.htm uses php.. so it is generating the session id.. but it is getting transfered to the other pages.
The only page that needs the id is news.htm itself.. is there a way to keep this from getting passed on?
I tried a method which requires adding this to htaccess:
php_flag session.use_trans_sid off
and this to the script (before session_start):
ini_set('session.use_trans_sid', false);
And it seems to work.. the link checker program does not transfer the id to other pages, but it does show several instances of news.htm with diff. ids.
Is there a better method? Or is this method ok?
Thanks.. btw, I have my server set to execute php code in files with the htm extension.
news.htmphp session-related files to their own directory and set the php_flag value in a per-directory override (
.htaccess) file:
php_flag session.use_trans_sid off
news.htm, use ini_set() [php.net] to change the directive
if ($linked_file <> 'news.htm') {
ini_set(session.use_trans_sid, 0)
}As far as the second option, wouldn't modifying the sleuth program (which is windows - not web - based) just make the problem go away in that particular program? It would still be there confusing search engine robots and such :)
Or am I mistaken that it will even hurt anything?
The code is in the news.htm file itself..
I must be tired, that first suggestion I made doesn't even make sense to me right now. Skip that option.
As far as the second option, wouldn't modifying the sleuth program (which is windows - not web - based) just make the problem go away in that particular program? It would still be there confusing search engine robots and suchOr am I mistaken that it will even hurt anything?
Another mistake. Two-for-two in the same response.
I didn't realize that the sleuth program wasn't a script. I just assumed it was a PHP script. Neither did I realize that you were concerned with SE bots. From the original post it seemed as though you were merely trying to build a site map or something.
Well, you could always modify the news.htm script and build the SID into the links [php.net] yourself as opposed to letting PHP handle it for you. Also, you may be able to use the "non-relative links" note to your advantage.
Outside of that, I'm stumped. Anyone else have any ideas?
It appears that Xenu does not accept cookies. So when you refuse to let the ID be passed via a GET parameter, the script has no way of tracking the session. Therefore, you will always get a new session every time you start it unless you can get Xenu to accept and then use the session cookie.
Just curious, but why do you need sessions for the link checker?