Forum Moderators: coopster

Message Too Old, No Replies

session ids sometimes added to url, sometimes not

         

dwidmer

7:20 am on Aug 28, 2003 (gmt 0)

10+ Year Member



Hi

I'm still trying to solve this mystery. I have sessions and I'm forcing PHP to add the ID to each link. (Cookies disabled in php.ini).

However, some links on the same page do not contain the Session ID.

How can it be that PHP adds the session ID to some URLs and leaves others unchanged?

any ideas? thx

Dan

DrDoc

4:16 pm on Aug 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are the links static or generated by PHP?

dwidmer

7:36 am on Aug 29, 2003 (gmt 0)

10+ Year Member



actually both. some links come from a separate menu class and the others are static (stored in a database).

vincevincevince

8:31 am on Aug 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are the links to:
pages on your site?
pages parsed by php?
pages with a different canonical?

dwidmer

10:08 am on Aug 29, 2003 (gmt 0)

10+ Year Member



Okay, here's how the site works (in brief)

index.php includes a file called menu.php
menu.php creates a variable called $entry['menu'] which contains the links for the menu.

in index.php $entry is sent to a template function and then displayed.

Some (internal) links on index.php contain the Session ID, while menu links don't.

Daniel