Normally, the session id is stored in a cookie. The session id is only appended to the url, if the user has disabled cookies.
Yeah, that's true but there is a slight problem (apart from the fact that the crappy IE doesn't display the SID when running without cookies ...)
I have a few static pages that are called via "index.php?template=news" for instance - they do not have a sessionID added to the URL. Is there a way that I can tell 4images to add the session ID? I tried the normally available constant SID but that doesn't work
And another problem is that I have coded a few search links like "{url_search}?search_keywords=max+mustermann" - these work fine when the user has cookies enabled but with disabled cookies the parsed URL looks like this "?sessionid=804209c8f06d64fe750418662fa45346?search_keywords=max+mustermann" obviously this doesn't work; the 2nd "?" had to be replaced by "&".
Any idea how to solve these issues? I worked around the latter problem by replacing the "{url_search}" with a hard coded "./search.php". By this I lose the session ID but at least my users get proper search results. I'm now thinking about building forms with hidden fields for the search terms and to submit the form by clicking the link ...
Also one question to Jan as we are talking about sessions: why are you storing them in the database instead of PHP's default to store them in the file system? I've been told that the file system solution is quicker than database calls.
cheers,
Bernd