Passing or not passing SID in links etc
| From: | Gerard Samuel | Date: | Mon, 22 Dec 2003 06:20:49 +0000 |
| Subject: | Passing or not passing SID in links etc | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-173131@lists.php.net to get a copy of this message | ||
Im currently modifying templates to include the SID constant, for the few set
of users who are rejecting session cookies.
If I have an url like ->
<a href="http://www.foo.com/">Go
Home</a>
For users who are rejecting cookies the url looks like ->
<a href="http://www.foo.com/?PHPSISSID=1234">Go
Home</a>
For users who are accepting cookies, the url looks like ->
<a href="http://www.foo.com/?">Go
Home</a>
My question is, are there any known problems with just having '?' at the end
of urls/links?
Yes, I can do an if/else, but for simple things like this in the templates,
but it makes it look more like code than html, and I rather stay away from
it. The simpler the template the better.
Thanks for your advise.