Loganathan Sellapa
2013-Mar-28 13:24 UTC
session variable becomes nil after paypal redirect
Hi All, I am using PAYAPAL payment type in my application where I am storing the user''s product id in a session. But the session variable becomes nil when the page is redirected back to my application from PAYPAL website, any suggestion will be really appreciated. regards, Loganathan Mob: +91 7760780741 | +91 9944414388 Skype: loganathan.sellappa ViewMe <http://vizualize.me/loganathan> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Hi loganathan, I also faced this issue. My devise logout once paypal redirect to my site. :return => return_url, :custom => "test", :rm => 1, This may be you are passing wrong values. In my case, before i set "rm" value 2. so that my devise get logout. but i dont know this is the real cause. Once i change rm to 1 my issue solved. So please check your passing param value to paypal. Thank you! SaraVanaN.P On Thu, Mar 28, 2013 at 6:54 PM, Loganathan Sellapa <loganathan.ms-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi All, > > I am using PAYAPAL payment type in my application where I am storing the > user''s product id in a session. But the session variable becomes nil when > the page is redirected back to my application from PAYPAL website, any > suggestion will be really appreciated. > regards, > Loganathan > Mob: +91 7760780741 | +91 9944414388 > Skype: loganathan.sellappa > ViewMe <http://vizualize.me/loganathan> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- Regards by Saravanan.P -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Loganathan Sellapa
2013-Mar-28 13:46 UTC
Re: session variable becomes nil after paypal redirect
Hi Saravanan, Thanks, Fixed it by disabling the forgery protection for PAYPAL post request. regards, Loganathan Mob: +91 7760780741 | +91 9944414388 Skype: loganathan.sellappa ViewMe <http://vizualize.me/loganathan> On Thu, Mar 28, 2013 at 7:03 PM, Saravanan P <saravanan.p-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org>wrote:> Hi loganathan, > > I also faced this issue. > My devise logout once paypal redirect to my site. > > > :return => return_url, > :custom => "test", > :rm => 1, > > This may be you are passing wrong values. > In my case, before i set "rm" value 2. so that my devise get logout. but i > dont know this is the real cause. > Once i change rm to 1 my issue solved. > So please check your passing param value to paypal. > > Thank you! > SaraVanaN.P > > > > On Thu, Mar 28, 2013 at 6:54 PM, Loganathan Sellapa < > loganathan.ms-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Hi All, >> >> I am using PAYAPAL payment type in my application where I am storing the >> user''s product id in a session. But the session variable becomes nil when >> the page is redirected back to my application from PAYPAL website, any >> suggestion will be really appreciated. >> regards, >> Loganathan >> Mob: +91 7760780741 | +91 9944414388 >> Skype: loganathan.sellappa >> ViewMe <http://vizualize.me/loganathan> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > Regards by > Saravanan.P > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Gintautas Å imkus
2013-Mar-28 13:51 UTC
Re: session variable becomes nil after paypal redirect
Ain''t :rm stands for redirect method? You got to use GET because with POST redirect without authenticity token of rails app your session will be cleared as a security measure. 2013/3/28 Saravanan P <saravanan.p-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org>> Hi loganathan, > > I also faced this issue. > My devise logout once paypal redirect to my site. > > > :return => return_url, > :custom => "test", > :rm => 1, > > This may be you are passing wrong values. > In my case, before i set "rm" value 2. so that my devise get logout. but i > dont know this is the real cause. > Once i change rm to 1 my issue solved. > So please check your passing param value to paypal. > > Thank you! > SaraVanaN.P > > > > On Thu, Mar 28, 2013 at 6:54 PM, Loganathan Sellapa < > loganathan.ms-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Hi All, >> >> I am using PAYAPAL payment type in my application where I am storing the >> user''s product id in a session. But the session variable becomes nil when >> the page is redirected back to my application from PAYPAL website, any >> suggestion will be really appreciated. >> regards, >> Loganathan >> Mob: +91 7760780741 | +91 9944414388 >> Skype: loganathan.sellappa >> ViewMe <http://vizualize.me/loganathan> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > Regards by > Saravanan.P > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- Pagarbiai, Gintautas -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.