Please oh please, at my witt's end. [Sessions]

2007-06-28 Thread kerkor

I have cake implemented for one shopping cart and everything seems
fine.
Client wanted to just copy those files and build a new front-end for
the second site.
I have copied the files (especially the controllers) multiple times
and I have changed all occurrences of the previous site's url.
My problem, is that it seems, that new sessions are being created for
no reason.  Most of the time the application behaves as it should.
This is why it is so confusing.

My database stores orders by the session id until the user logs in and
then the programming sets the session
to null and enters a customer id.

In my order controller I have this as a beforeFilter()
function beforeFilter() {
parent::beforeFilter();
$this-session = $this-Session-read('Config.rand');
}

Here are the 3 areas where I see session-related problems
(note: only on the second site, the first site seems to function fine
all the time):

1.
On the cart page there is an option of resetting the type of
shipping.
If you use the drop-down to select something other than the default
shipping and click a button update cart, SOMETIMES a new session is
created and
is updated in the db but then in the code where is looks and compares
session
it no longer equates since it has been changed.

2.
After cart, before 1st checkout page, user is required to login or
create account.  Session changes so when user logs in customer id is
not saved since sessions do not match

3.
Every refresh of the page creates a new session  WTF?

Please if you could offer ANY ideas, I have eaten and spent of 20
hours trying to debug this problem...

Thank you ever s much.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Please oh please, at my witt's end. [Sessions]

2007-06-28 Thread Jonathan Langevin
Are both installations on the same server? If so, are they both installed
under the same user account?

On 6/28/07, kerkor [EMAIL PROTECTED] wrote:


 I have cake implemented for one shopping cart and everything seems
 fine.
 Client wanted to just copy those files and build a new front-end for
 the second site.
 I have copied the files (especially the controllers) multiple times
 and I have changed all occurrences of the previous site's url.
 My problem, is that it seems, that new sessions are being created for
 no reason.  Most of the time the application behaves as it should.
 This is why it is so confusing.

 My database stores orders by the session id until the user logs in and
 then the programming sets the session
 to null and enters a customer id.

 In my order controller I have this as a beforeFilter()
 function beforeFilter() {
 parent::beforeFilter();
 $this-session = $this-Session-read('Config.rand');
 }

 Here are the 3 areas where I see session-related problems
 (note: only on the second site, the first site seems to function fine
 all the time):

 1.
 On the cart page there is an option of resetting the type of
 shipping.
 If you use the drop-down to select something other than the default
 shipping and click a button update cart, SOMETIMES a new session is
 created and
 is updated in the db but then in the code where is looks and compares
 session
 it no longer equates since it has been changed.

 2.
 After cart, before 1st checkout page, user is required to login or
 create account.  Session changes so when user logs in customer id is
 not saved since sessions do not match

 3.
 Every refresh of the page creates a new session  WTF?

 Please if you could offer ANY ideas, I have eaten and spent of 20
 hours trying to debug this problem...

 Thank you ever s much.


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Please oh please, at my witt's end. [Sessions]

2007-06-28 Thread kerkor

They are installed on the same machine but under different user
accounts.

On Jun 28, 8:01 am, Jonathan Langevin [EMAIL PROTECTED] wrote:
 Are both installations on the same server? If so, are they both installed
 under the same user account?

 On 6/28/07, kerkor [EMAIL PROTECTED] wrote:





  I have cake implemented for one shopping cart and everything seems
  fine.
  Client wanted to just copy those files and build a new front-end for
  the second site.
  I have copied the files (especially the controllers) multiple times
  and I have changed all occurrences of the previous site's url.
  My problem, is that it seems, that new sessions are being created for
  no reason.  Most of the time the application behaves as it should.
  This is why it is so confusing.

  My database stores orders by the session id until the user logs in and
  then the programming sets the session
  to null and enters a customer id.

  In my order controller I have this as a beforeFilter()
  function beforeFilter() {
  parent::beforeFilter();
  $this-session = $this-Session-read('Config.rand');
  }

  Here are the 3 areas where I see session-related problems
  (note: only on the second site, the first site seems to function fine
  all the time):

  1.
  On the cart page there is an option of resetting the type of
  shipping.
  If you use the drop-down to select something other than the default
  shipping and click a button update cart, SOMETIMES a new session is
  created and
  is updated in the db but then in the code where is looks and compares
  session
  it no longer equates since it has been changed.

  2.
  After cart, before 1st checkout page, user is required to login or
  create account.  Session changes so when user logs in customer id is
  not saved since sessions do not match

  3.
  Every refresh of the page creates a new session  WTF?

  Please if you could offer ANY ideas, I have eaten and spent of 20
  hours trying to debug this problem...

  Thank you ever s much.- Hide quoted text -

 - Show quoted text -


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---