Friday, July 30, 2010

Re: session is not working between different actions on different controllers

Hi there,

the idea is that i am doing something like an ecommerce platform for
merchants.

there are 2 apps because i want the shopping site to be on 1 domain
and the checkout pages to be on another domain.

so that i can use ssl on the checkout pages and that this is
consistent for ALL customers who buy stuff from different merchants.

> 1. Localhost can often be a tricky thing for cookies and sessions.
> Make sure those addresses are really the way content is being served
> up to the browser.

i dont quite get this point. what do you mean by make sure the
addresses are really the way content is being served?

> 2. Cookie settings in Configure::write(): make sure they're set for
> the exact same location, not /checkout and /wp

i am just confused about this suggestion.


On Jul 30, 10:58 pm, DragonFlyEye <dragonflyey...@gmail.com> wrote:
> Why two separate applications for this? Is one not CakePHP?
>
> Offhand, here's a few things:
> 1. Localhost can often be a tricky thing for cookies and sessions.
> Make sure those addresses are really the way content is being served
> up to the browser.
> 2. Cookie settings in Configure::write(): make sure they're set for
> the exact same location, not /checkout and /wp
>
> On Jul 30, 10:48 am, Kei Simone <kimc...@gmail.com> wrote:
>
>
>
> > Hi all,
>
> > i have 2 cake apps. localhost/wp and localhost/checkout. wp sends a
> > httpsocket->post to localhost/checkout/carts/add and gets a result.
> > the carts/add will set a session value. wp will use the result of the
> > post and redirects to paypalsandbox. after that the paypalsandbox will
> > redirect to localhost/checkout/orders/pay. however in orders/pay it
> > cannot find the session written in carts/add
>
> >http://picasaweb.google.com/lh/photo/o_Ylvp3uqtQer-d5HC9Lgg?feat=dire...
> > describes my situation
>
> > i have tried setting security to low
>
> > changing to database for my session
>
> > changing to custom handler where the referer_check is empty string
>
> > change session cookiename
>
> > change checkAgent to false
>
> > so if you have any other methods, please please tell me.
>
> > i am really stuck.
>
> > i am not sure if this is due to the paypal page redirecting? or due to
> > the fact that the place where i first write the session value i am
> > used a httpsocket post.
>
> > Please advise. thank you.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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

No comments: