Website automatically gets logged out

37 views
Skip to first unread message

Saranya S

unread,
Sep 5, 2019, 7:28:36 AM9/5/19
to web2py-users
Website automatically logs out after 'PayUMoney' payment gateway, redirects to success.html page.

This happens only after deploying to  pythonanywhere server....Same code works perfectly in local host(http://127.0.0.1:8000)


Go to the above url and login as saran...@gmail.com and password test...click the cart and checkout...continue to payment ....complete the payment...After successful payment when redirected to success.html page, the user gets logged out automatically

PLEASE HELP TO RESOLVE THIS ISSUE....

sandeep patel

unread,
Sep 5, 2019, 8:24:18 AM9/5/19
to web...@googlegroups.com
Hey Saranya,
I have successfully depoyed PayUMoney payment gateway in web2py apps.
Here is code repo for that.

Please have a look at it.

Thanks
SP


--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/4f053215-302e-4aee-bf2a-c0a9adad58ab%40googlegroups.com.

Saranya S

unread,
Sep 6, 2019, 12:08:59 AM9/6/19
to web2py-users
Thanks Sandeep....I'm using the same web2py app from github. You have given the link in another thread as well.

It's working perfectly when tested in local host(127.0.0.1:8000). I have deployed the same app to pythonanywhere server. Below is the link:


Please go to the above url. Signup /login as a user. Click Pay and go to the payment gateway.

After successful transaction, user gets logged out automatically and that's my issue.

Please try and let me know.


On Thursday, September 5, 2019 at 5:54:18 PM UTC+5:30, sandeep patel wrote:
Hey Saranya,
I have successfully depoyed PayUMoney payment gateway in web2py apps.
Here is code repo for that.

Please have a look at it.

Thanks
SP


On Thu, Sep 5, 2019 at 4:58 PM Saranya S <saran...@gmail.com> wrote:
Website automatically logs out after 'PayUMoney' payment gateway, redirects to success.html page.

This happens only after deploying to  pythonanywhere server....Same code works perfectly in local host(http://127.0.0.1:8000)


Go to the above url and login as saran...@gmail.com and password test...click the cart and checkout...continue to payment ....complete the payment...After successful payment when redirected to success.html page, the user gets logged out automatically

PLEASE HELP TO RESOLVE THIS ISSUE....

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web...@googlegroups.com.

Saranya S

unread,
Sep 9, 2019, 12:43:13 AM9/9/19
to web2py-users
Found solution to this problem. This is because of a defect in pythonanywhere server.

I had http url in my code and I corrected it later to https. But pythonanywhere server assumes it as http even after it is corrected and automatically logged out the user.

I have created a new pythonanywhere account and deployed updated web2py application...

Now it's working perfectly....
Reply all
Reply to author
Forward
0 new messages