[FX.php List] Cookie issue

Joel Shapiro jsfmp at earthlink.net
Mon Feb 25 09:17:41 MST 2008


It wasn't a question of it being "wrong" but more "untidy" ;-)   
Either way, that'll be the end of my persnickety-ness (for now).   
Thanks for taking the time to indulge my curiosity.

Best,
-Joel


On Feb 25, 2008, at 8:04 AM, Steve Winter wrote:

> Hi Joel,
>
> To my knowledge the presence or absence on the end of the URL makes no
> difference (it certainly doesn't make a _practical_ difference,  
> though that
> doesn't always mean it's not _wrong_ ;-)
>
> I guess if it bothered you, or you considered it's presence to be  
> 'wrong'
> then you could do a second test for the presence of SID at the time  
> at which
> you go to append new parameters, and then as you say, add either  
> & or ?
> as required...
>
> (And just while we're talking about SID and the GET method, don't  
> forget
> that you also need to pass it forward in POSTs as well...)
>
> Cheers
> Steve
>
>
>
> -----Original Message-----
> From: fx.php_list-bounces at mail.iviking.org
> [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Joel  
> Shapiro
> Sent: 25 February 2008 15:48
> To: FX.php Discussion List
> Subject: Re: [FX.php List] Cookie issue
>
> Thanks Steve
>
> I did realize there'd need to be some checking for isset(SID)
>
> But to my second question, do you regularly end your php urls with a
> questionmark (e.g. page.php?) ?  It seems you could use an IF
> statement before any GET parameters to determine if you need to use
> "?" (for 1st param, if exists) or "&" (for any subsequent  
> params)... no?
>
> -Joel
>
>
> On Feb 25, 2008, at 7:34 AM, Steve Winter wrote:
>
>> In practice the way that I've handled that has been;
>>   pagereference.php<?php if(isset(SID)) echo '?'.SID.'&'; else echo
>> '?'; ?>
>> then you can append additional parameters as required...
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list