Reply to Re: Sessions in PHP4

Your name:

Reply:


Posted by OmegaJunior on 02/03/07 20:10

On Sat, 03 Feb 2007 17:21:18 +0100, sid <sidwelle@alexian.net> wrote:

> On Feb 3, 8:08 am, OmegaJunior <omegajun...@spamremove.home.nl> wrote:
>>
>> Ah, sorry for the misunderstanding. Let's copy something from a recent
>> appliction of mine:
>>
>> ini_set('session.use_trans_sid', 0);
>> ini_set('session.use_cookies', 1);
>> ini_set('session.use_only_cookies', 1);
>> ini_set('session.cookie_httponly', 1);
>>
>> Hope this helps!
>>
>> --
>> Using Opera's revolutionary e-mail client:http://www.opera.com/mail/-
>> Hide quoted text -
>>
>> - Show quoted text -
>
> I will try this on Monday. Do these settings persist across all pages
> and sessions or just the immediate session ?
>
>
>

"The configuration option will keep this new value during the script's
execution, and will be restored at the script's ending."

You have to set them in every script that uses the session variables
BEFORE "session_start()" or php won�t find them.
To prevent having to do this each time, you can use a small wrapper or
auxilary function with all the needed settings and call it from every
page, before session_start().

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

[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

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