Reply to Re: newbie: is this data stored in a cookie?

Your name:

Reply:


Posted by Jeff on 01/04/07 23:16

"Rik" <luiheidsgoeroe@hotmail.com> wrote in message
news:42e70$459d89b7$8259c69c$19149@news2.tudelft.nl...
> Jeff wrote:
>> "Rik" <luiheidsgoeroe@hotmail.com> wrote in message
>> news:e7cab$459d7add$8259c69c$13113@news2.tudelft.nl...
>>> Jeff wrote:
>>>> From http://no.php.net/session I've read that a session is either
>>>> stored in a cookie on the user side or is propagated in the URL.
>>>
>>> Or a POST value.
>>>
>>>> So if the session below (see code example below) isn't propagated in
>>>> the URL then it's stored in a cookie?
>>>
>>> Or not/not at all. No way to tell with this portion of the code.
>>> Check your
>>> requests and answers to the site. If you're using Internet Explorer,
>>> Fiddler is an invaluable tool. Likewise with LiveHTTPHeaders for
>>> Firefox.
>>>
>>>> And also I'm wondering about how can I set the expire time of this
>>>> cookie?. I mean I didn't use setcookie to create this cookie...
>>>
>>> session.gc_maxlifetime for expiring session
>>> session.cookie_lifetime for expiring session cookie
>>>
>>> Check the values in Runtime Configuration on the url you gave us.
>>> It's all there.
>>
>> I tryed to set the expire time of the cookie in my app but I got a
>> compile error:
>> session.cookie_lifetime = 2;
>> Parse error: parse error, unexpected '='
>>
>> any suggestions?
>
> ini_set('session.cookie_lifetime',2);
> Or use session_set_cookie_params();
> A cookie that lasts 2 seconds is hardly usefull though....
> --
> Rik Wasmus
>
>

Yes 2 seconds are very short, but now when I know how to set the
cookie_lifetime, the I can give it a more useful value

[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

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