Reply to Re: Session Management for Newbie

Your name:

Reply:


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
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация