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