Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session Not working #14

Open
vermarajesh opened this issue Jan 10, 2018 · 2 comments
Open

Session Not working #14

vermarajesh opened this issue Jan 10, 2018 · 2 comments

Comments

@vermarajesh
Copy link

vermarajesh commented Jan 10, 2018

Hi There,

We are trying to implement this code on our magneto version 1.9.
The code was working fine in http url but when we are going to https the session are not working.

Error are coming : "user not login."

We are trying with

import org.apache.http.client.methods.HttpGet;
HttpGet httpGet = new HttpGet(uri);
httpGet.setHeader("Cookie", "frontend="+SESSIONID);

Can some one please help me.

Thanks,
Rajesh Verma

@raviganwal
Copy link

https://gist.github.com/jacobtabak/78e226673d5a6a4c4367 this link can help you

@vermarajesh
Copy link
Author

above are not working.

The problem is that it works for 1 day then next day it gives error. when we cheked apache access log we found this..

[26/Mar/2018:06:43:57 -0500] "GET /mobileapi/cart/add?product_id=49305&qty=1 HTTP/1.1" 302 20 "-" "Dalvik/2.1.0 (Linux; U; Android 7.1.2; Redmi Y1 MIUI/V9.2.3.0.NDKMIEK)"

Which means there is some redirection issue. But a strange thing is this comes next day and if we log out and log in again app works fine. Next day again same issue. Seems like a session issue but we are not able to figure it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants