View Full Version : sessions

10-30-2006, 10:06 AM
Hi I need help.

#-----i started a session on an index page---------#

> now, my problem is that every link in my site has a current session id added to it. e.g. i get


instead of:


without destroying a session.

10-30-2006, 10:39 AM
This actually happens when cookies are disabled on the browser u are using. Normally, session variables are stored in a file with the name of the file stored in a cookie so that each page where the session is used call up the session name from the cookie and use it to call up the file where the session variables are stored. So if cookies are disabled on the browser, PHP adds the name to each link on the page (iframe, ahref etc) so that it can keep track of the session name across this pages.