Re: Newman Asks, Do i have to use session_name('sid') every...
| From: | Justin French | Date: | Fri, 26 Jul 2002 01:05:16 +0000 |
| Subject: | Re: Newman Asks, Do i have to use session_name('sid') every... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109639@lists.php.net to get a copy of this message | ||
This list works well when people ask questions which aren't readily
available in the manual. People will get pretty frustrated with you pretty
quick, and the help will dry out unless you start showing a little
initiative before posting.
With a smart-arse little remark like the one you just gave, I'm pretty sure
I can't be bothered helping you any more :o)
(cute smiley face included, just for you)
Justin
on 25/07/02 7:17 PM, Philip J. Newman (newmanpj@philipnz.com) wrote:
> why read the manual when i can get someone else to give me the answer (o;
>
> ----- Original Message -----
> From: "Justin French" <justin@indent.com.au>
> To: "Philip J. Newman" <newmanpj@philipnz.com>;
> <php-general@lists.php.net>
> Sent: Thursday, July 25, 2002 8:30 PM
> Subject: Re: [PHP] Newman Asks, Do i have to use session_name('sid')
> every...
>
>
>> on 25/07/02 5:43 PM, Philip J. Newman (newmanpj@philipnz.com) wrote:
>>
>>> session_name('sid');
>>> session_start();
>>>
>>> Do i have to use session_name('sid'); every time i use session_start();
> or
>>> can session_name be used once?
>>
>> *sigh*
>>
>> How about testing it on two pages?
>>
>> Or better still, LOOK IN THE MANUAL!!!!
>>
>> php.net/session_name CLEARLY states:
>>
>> "
>> The session name references the session id in cookies and URLs. It should
>> contain only alphanumeric characters; it should be short and descriptive
>> (i.e. for users with enabled cookie warnings). The session name is reset
> to
>> the default value stored in session.name at request startup time. Thus,
> you
>> need to call session_name() for every request (and before session_start()
> or
>> session_register() are called).
>> "
>>
>> Justin French
>>
>>
>>
>
>
>