Search found 2 matches

by brandonhowlett
Sun Mar 08, 2009 4:01 pm
Forum: PHP - Code
Topic: Bloody mess of a function
Replies: 2
Views: 214

Re: Bloody mess of a function

I considered that but my cookies have varying expirations. This function allows me to retrieve $COOKIE['site']['dir']['SID'], just as I would $_COOKIE['SID'].
by brandonhowlett
Sun Mar 08, 2009 3:41 pm
Forum: PHP - Code
Topic: Bloody mess of a function
Replies: 2
Views: 214

Bloody mess of a function

I just can't wrap my head around this one. I'm using array cookies (ie: $_COOKIE['site']['dir']['SID']) and I couldn't find anything to handle them so I wrote this function:   // Cookie set on prior page... notice cookie naming convention setcookie('site[dir][SID]', $session_id...);   function stack...