[FX.php List] Cookie issue

Jonathan Schwartz jschwartz at exit445.com
Mon Feb 25 11:03:21 MST 2008


Call me crazy, but I now consider adding the if(SID)  mandatory for 
every solution I create.  That's because all of my projects involve 
multi-page processes that require session continuity from beginning 
to end.

Without using the method, the solution fails when users have their 
cookies turned off.  And the LAST thing that I want to do is to talk 
to either the client or the user himself about how to turn cookies 
on.  That is a colossal waste of time.  Time is better spent building 
in the code how to deal with cookies not being available.

HTH,

Jonathan





At 4:04 PM +0000 2/25/08, 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


-- 
Jonathan Schwartz
Exit 445 Group
jonathan at exit445.com
http://www.exit445.com
415-381-1852


More information about the FX.php_List mailing list