Hi all
I have created a small website http://www.vcmolenstede.be (it's in dutch, sorry).
There are some basic functions that benefit from using session vars.
At an include page which gets loaded at every page I have created this code:
ini_set("register_globals", "0");
session_start();
if (!isset($HTTP_SESSION_VARS['count'])) {
$HTTP_SESSION_VARS['count'] = 0;
}
if (!isset($HTTP_SESSION_VARS['shout'])) {
$HTTP_SESSION_VARS['shout'] = 0;
}
if (!isset($HTTP_SESSION_VARS['mail'])) {
$HTTP_SESSION_VARS['mail'] = "rnd000000";
}
And the code works fine, I can access the session vars on different pages.
When I start a new session (close the current browser and start a new one) the first time the page is loaded all urls are concated with the sessid var. When I click on this link the page is loaded and the sessid var isn't concated any more.
I want to prevent that the sessid is passed with the url (it only happens when the session is created). I have tried adding this:
ini_set("session.use_only_cookies","1");
But this doesn't solve the problem.
Any thoughts?
Tnx, narn
PS: I'm still using v4.0.3 so I have to use HTTP_SESSION_VARS...