Posts: 16
Threads: 5
Joined: Mar 2017
Hi Admin,
Thank you for your previous support.
I can't submit the form second time. First one was the successful test comment.
Error is showing : The form is missing a security token. Please try again.
Posts: 2,905
Threads: 59
Joined: Jun 2010
The script uses a session to prevent CSRF. So probably your session ended between your first comment and your second comment. That can happen if you wait too long or you clear your cookies for example.
Have
you completed
the interview?
Posts: 2,905
Threads: 59
Joined: Jun 2010
See this thread for more info. Please remember to search the forum first.
https://www.commentics.org/forum/showthr...p?tid=1333
Have
you completed
the interview?
Posts: 16
Threads: 5
Joined: Mar 2017
Posts: 2,905
Threads: 59
Joined: Jun 2010
Have
you completed
the interview?
Posts: 16
Threads: 5
Joined: Mar 2017
After disable this CSRF comment form started working. And after removing all test comment it is not working and showing "Your answer was incorrect" even I entered correct answer.
What is going wring?
Posts: 2,905
Threads: 59
Joined: Jun 2010
These are all session-based features that you're having a problem with. Did you add the session_start() code at the beginning of your file as suggested in the integration guide? How long are you waiting between the page loading and trying to post a comment? How long are sessions set to expire on your server? Are you viewing other pages where Commentics is integrated on your website after the page has loaded and before posting? Have you tested it on another browser?
Have
you completed
the interview?
Posts: 16
Threads: 5
Joined: Mar 2017
Hi ,
1. I added session_start()
2. I started commenting immediately after loading.
3. I don't know where to set sessions expire on my server.
4. No! only commentics admin panel remain opened on another tab.
5. It is working on another browser.
I think another page remain opened on my mobile and I am using a notebook over my mobile's hotspot internet.
It worked once after restart my notebook and mobile.( Hope it will work next time ).