Kristina Anderson wrote:
Yes, but if I do $_SESSION['cart_id'], it is effectively the same
thing, I'm using this random string as an identifier for the unique
cart. This is effectively the same as $_SESSION['session_id'] -- only
the name is different.
And there is no reason to name it differ
Hello All,
So, after porting some C code to PHP for a research project, I had a
spelling mistake ($complexCamelCaseVar, heh) that caused a bug that took
me a long time to find out.
I thought, wouldn't it be great to get a list of all my variables, in
alphabetical order, with a count associate
Ajai-- this part I'm fine onit's just the matter, really, of after
instantiating that session variable, locking it in. I think I've
decided to do the include file thing so that index.php is not
accessible after the first viewthat way they can't restart the
session unless they retype in
Yes, but if I do $_SESSION['cart_id'], it is effectively the same
thing, I'm using this random string as an identifier for the unique
cart. This is effectively the same as $_SESSION['session_id'] -- only
the name is different.
the unique identifier is generated when index.php loads, and is pas
On Wed, 20 Aug 2008, Kristina Anderson wrote:
> John -- store the cart items in the $_SESSION array and only write to
> the database when they check out?
Sure, that would work.
Or store using a database table temporary session data (some PHP
frameworks have support for that and have the added
On Wed, Aug 20, 2008 at 5:38 PM, Kristina Anderson
<[EMAIL PROTECTED]> wrote:
> John -- store the cart items in the $_SESSION array and only write to
> the database when they check out?
Or store the cart in the database, and just store a key in the session
such as $_SESSION['cart_id']
> I am usin
John -- store the cart items in the $_SESSION array and only write to
the database when they check out?
I am using PHP session but this variable is being passed in, as a
unique identifier for that session/cart.
> On Wed, Aug 20, 2008 at 3:24 PM, Kristina Anderson
> <[EMAIL PROTECTED]> wrote:
>
Mike --
$rand=rand(1,9);
$session_id=$rand.substr(md5($REMOTE_ADDR), 0, 11+$rand);
$session_id.=substr(md5(rand(1,100)), rand(1,32-$rand), 21-$rand);
session_id($session_id);
session_start();
$_SESSION['sessionid'] = $session_id;
---
What I need is some simple way to prevent this from bein
On Wed, Aug 20, 2008 at 3:24 PM, Kristina Anderson
<[EMAIL PROTECTED]> wrote:
> When visitors initially arrive on the site, a randomized session id is
> generated to track items they add to their cart. The only problem is
> that when/if they return to/refresh the homepage during their visit,
> th
On Wed, Aug 20, 2008 at 3:56 PM, Kristina Anderson
<[EMAIL PROTECTED]> wrote:
> That's what I want to do, but I need to prevent the value of session id
> from changing if for some reason they revisit or refresh the index.php
> page...as that is where the value is created.
The session id should not
Kristina Anderson wrote:
That's what I want to do, but I need to prevent the value of session id
from changing if for some reason they revisit or refresh the index.php
page...as that is where the value is created.
I've seen discussions on here about populating a hidden field and then
testing
I think you could do that as well as set a cookie and check that as
well. That way if the user has cookies turned off you still can track
the session.
Bruce Martin
The Martin Solution
[EMAIL PROTECTED]
http://www.martinsolution.com
http://externals.martinsolution.com
On Aug 20, 2008, at 3:56
That's what I want to do, but I need to prevent the value of session id
from changing if for some reason they revisit or refresh the index.php
page...as that is where the value is created.
I've seen discussions on here about populating a hidden field and then
testing that to see if it's not emp
On Wed, Aug 20, 2008 at 3:24 PM, Kristina Anderson
<[EMAIL PROTECTED]> wrote:
> Hi all --
>
> When visitors initially arrive on the site, a randomized session id is
> generated to track items they add to their cart. The only problem is
> that when/if they return to/refresh the homepage during thei
Hi all --
When visitors initially arrive on the site, a randomized session id is
generated to track items they add to their cart. The only problem is
that when/if they return to/refresh the homepage during their visit,
the session id changes and this will obviously result in unwanted
issues.
[EMAIL PROTECTED] wrote:
has anyone checked out expression engine. there is a base free
version and if you want modules, there's a small licensing fee; it
seems pretty cool though.
Just to clarify:
There is a free version that allows you to develop for/play with the
system, but not use it
has anyone checked out expression engine.? there is a base free version and if
you want modules, there's a small licensing fee; it seems pretty cool though.
~rob
-Original Message-
From: bzcoder <[EMAIL PROTECTED]>
To: NYPHP Talk
Sent: Tue, 19 Aug 2008 12:28 pm
Subject: Re: [n
17 matches
Mail list logo