|
Posted by Jerry Stuckle on 12/06/06 16:03
Sanders Kaufman wrote:
> Jerry Stuckle wrote:
>
>> Sanders Kaufman wrote:
>
>
>>> One more thing - on the session token.
>>> I notice that PHP puts it in the query string.
>>> Is it possible to force that into a cookie?
>>>
>>> I know this will mess with folks who turn cookies off, but I'm
>>> accounting for that elsehow.
>>
>>
>> PHP can put it in a cookie if the user has cookies enabled. This is
>> controlled by the session.use_cookies and session.use_only_cookie in
>> your php.ini file.
>
>
> I would need my app to handle that gracefully. Is there a built-in
> function to programatically determine which way it's set?
You could use ini_get() to check on it. But your server should be set up
to use cookies if they're available, and the query string if they're not.
And if the server isn't set up properly, it's time to get a new host,
IMHO. There are too many out there to worry about trying to get around
problems such as this.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|