On Aug 15, 2012, at 4:13 PM, Robert Cummings wrote:
>
> I only pointed it out because I used to do exactly the same thing :)
>
> Cheers,
> Rob.
Thanks, I was starting to feel pretty dumb.
Cheers,
tedd
_
t...@sperling.com
http://sperling.com
--
PHP General Mailing List
On Aug 15, 2012, at 4:42 PM, Andrew Ballard wrote:
> On Wed, Aug 15, 2012 at 3:24 PM, Tedd Sperling wrote:
>> The php manual ( http://us3.php.net/manual/en/function.session-start.php )
>>
>> First Note states that session_start() must be called *before* anything sent
>> to the Browser.
>>
>> S
On Wed, Aug 15, 2012 at 3:24 PM, Tedd Sperling wrote:
> Your points are well taken -- thanks.
I've seen a lot of people code that way, so it's easy to miss. In your
original code, that first statement was calling session_start() 1,000
times. This is because the first time through, SID is undefine
On 12-08-15 03:19 PM, Tedd Sperling wrote:
Rob:
Again thanks.
Sorry, I totally missed your point.
In my "defense" I commonly use the value returned from microtime() as a string and not as
a float. The code that followed my "microtime( false );" demo broke the string and
recombined it into a
Andrew:
Your points are well taken -- thanks.
However, my only concern is given this:
> for($i=1; $i < 1000; $i++)
>{
>if (!defined('SID'))
> {
> echo __LINE__, '::session_start()';
> session_start();
> }
>}
The php manual ( http:
On Aug 14, 2012, at 11:01 AM, Robert Cummings wrote:
>
> I'm not sure if you're making a joke, but your changes have no effect. You've
> merely explicitly stated the optional parameter's default value. What I had
> meant was to change the following:
>
>
> $starttime = microtime();
> $startar
On Fri, Aug 10, 2012 at 11:56 AM, Tedd Sperling wrote:
> On Aug 10, 2012, at 11:45 AM, Tedd Sperling wrote:
>
>> On Aug 9, 2012, at 5:16 PM, Jim Lucas wrote:
>>> You are relying on PHP's loose typing. This is a poor check.
>>>
>>> session_id() returns a string, not boolean.
>>>
>>> You should d
On Aug 14, 2012 1:36 AM, "tamouse mailing lists"
wrote:
>
>
> On Aug 13, 2012 8:01 AM, "Robert Cummings" wrote:
> >
> > On 12-08-10 04:42 PM, Tedd Sperling wrote:
> >>
> >> On Aug 10, 2012, at 1:21 PM, Ege Sertçetin
wrote:
> >>
> >>> Hi. My question will maybe out of topic, I'm sorry.
> >>> How
On 12-08-14 10:41 AM, Tedd Sperling wrote:
On Aug 13, 2012, at 10:59 AM, Robert Cummings wrote:
On 12-08-10 04:42 PM, Tedd Sperling wrote:
On Aug 10, 2012, at 1:21 PM, Ege Sertçetin wrote:
Hi. My question will maybe out of topic, I'm sorry.
How can you know that one way will be much slower
On Aug 13, 2012, at 10:59 AM, Robert Cummings wrote:
> On 12-08-10 04:42 PM, Tedd Sperling wrote:
>> On Aug 10, 2012, at 1:21 PM, Ege Sertçetin wrote:
>>
>>> Hi. My question will maybe out of topic, I'm sorry.
>>> How can you know that one way will be much slower than other one? I mean,
>>> ho
On Aug 13, 2012 8:01 AM, "Robert Cummings" wrote:
>
> On 12-08-10 04:42 PM, Tedd Sperling wrote:
>>
>> On Aug 10, 2012, at 1:21 PM, Ege Sertçetin wrote:
>>
>>> Hi. My question will maybe out of topic, I'm sorry.
>>> How can you know that one way will be much slower than other one? I
mean, how can
On 12-08-10 04:42 PM, Tedd Sperling wrote:
On Aug 10, 2012, at 1:21 PM, Ege Sertçetin wrote:
Hi. My question will maybe out of topic, I'm sorry.
How can you know that one way will be much slower than other one? I mean, how
can I learn which function is faster before I test it?
Ege:
No your
On Aug 10, 2012, at 1:21 PM, Ege Sertçetin wrote:
> Hi. My question will maybe out of topic, I'm sorry.
> How can you know that one way will be much slower than other one? I mean, how
> can I learn which function is faster before I test it?
Ege:
No your question is on topic.
This question sho
Am 09.08.12 23:16, schrieb Jim Lucas:
> On 08/09/2012 01:45 PM, Tedd Sperling wrote:
>> On Aug 8, 2012, at 5:41 PM, Jim Giner
>> wrote:
>>
>>> On 8/8/2012 11:24 AM, Ansry User 01 wrote:
I am setting the _SESSION variables in one of my file, but whenever
I leave the php page session varia
On Aug 10, 2012, at 11:45 AM, Tedd Sperling wrote:
> On Aug 9, 2012, at 5:16 PM, Jim Lucas wrote:
>> You are relying on PHP's loose typing. This is a poor check.
>>
>> session_id() returns a string, not boolean.
>>
>> You should do this instead.
>>
>> if ( session_id() === '' )
>>
>>
>
On Aug 9, 2012, at 5:16 PM, Jim Lucas wrote:
> You are relying on PHP's loose typing. This is a poor check.
>
> session_id() returns a string, not boolean.
>
> You should do this instead.
>
> if ( session_id() === '' )
>
>
>
> --
> Jim Lucas
Thanks Jim -- you're right.
What about?
i
On 08/09/2012 01:45 PM, Tedd Sperling wrote:
On Aug 8, 2012, at 5:41 PM, Jim Giner wrote:
On 8/8/2012 11:24 AM, Ansry User 01 wrote:
I am setting the _SESSION variables in one of my file, but whenever I leave the
php page session variables are not accessible. Not sure what I need to do
addi
On Aug 8, 2012, at 5:41 PM, Jim Giner wrote:
> On 8/8/2012 11:24 AM, Ansry User 01 wrote:
>> I am setting the _SESSION variables in one of my file, but whenever I leave
>> the php page session variables are not accessible. Not sure what I need to
>> do additionally other then defining _SESSION[
-Original Message-
From: David Harkness [mailto:davi...@highgearmedia.com]
Sent: Wednesday, August 08, 2012 11:53 AM
To: Ansry User 01
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP session variables
On Wed, Aug 8, 2012 at 8:24 AM, Ansry User 01 wrote:
> I am setting the _SESS
On Wed, Aug 8, 2012 at 8:24 AM, Ansry User 01 wrote:
> I am setting the _SESSION variables in one of my file, but whenever I
> leave the php page session variables are not accessible.
As always, post some code demonstrating what you're doing. Help us help
you! :)
David
On Wed, Aug 8, 2012 at 11:24 AM, Ansry User 01 wrote:
> I am setting the _SESSION variables in one of my file, but whenever I leave
> the php page session variables are not accessible. Not sure what I need to do
> additionally other then defining _SESSION[].
> Any pointer.
If you're not tel
Hi Gerard,
Thank you for your assistance you have been of enormous help.
Regards,
Andy
"Gerard Samuel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Saturday 27 December 2003 10:54 am, Andy Higgins wrote:
>
> > 1. At the time of login will the login code need to check if the c
On Saturday 27 December 2003 10:54 am, Andy Higgins wrote:
> 1. At the time of login will the login code need to check if the clients
> browser accepts cookies and if not then append the SID as described? If so,
> do you perhaps have a sample piece of code that does this?
No, php does this for yo
Hi Mark,
Thank you for confirming that for me. I am new to the list and did do a
search though past messages but did not find this point (obvioulsy I did not
look hard enough).
Thanks again.
Regards,
Andy
"Mark Charette" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > -Orig
> -Original Message-
> From: Andy Higgins [mailto:[EMAIL PROTECTED]
> Can anyone confirm whether
> AOL (or any
> other ISPs for that matter) change a user's IP address as seen by the web
> server (for eample through a proxy) within the same session?
It's been pointed out and confirmed many
Hi Gerard,
Thank you very much for the response. Please can you clarify the following:
1. At the time of login will the login code need to check if the clients
browser accepts cookies and if not then append the SID as described? If so,
do you perhaps have a sample piece of code that does this?
2
On Saturday 27 December 2003 07:03 am, Andy Higgins wrote:
> Hello All,
>
> I have been racking my head over a problem where a large percentage of
> users are unable to log into my php site due to what seems to be a problem
> with setting php session variables on certain end user browsers (certain
Hi Andras,
Yes, good point Thank you. It could be that the IP address of the user is
changing on each HTTP request that is made, which would explain the problem
(although that does seem quite odd). Can anyone confirm whether AOL (or any
other ISPs for that matter) change a user's IP address as see
-Original Message-
From: Andy Higgins [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 27, 2003 6:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Session Variables Not Being Set For Certain Browsers
Hello All,
I have been racking my head over a problem where a large percentage of users
29 matches
Mail list logo