Advertisement:

Author Topic: Your session timed out while posting. Please go back and try again.  (Read 2007 times)

Offline Drink_Tea

  • Newbie
  • *
  • Posts: 2
Ever since upgrading I have ran into the same problem on different servers with different themes. The issue is the login widget on each of these themes (by different authors, so it isn't the theme's issue)

Gives me an error of




Your session timed out while posting. Please go back and try again.

I have attempted to do fixes, I am running Php 5.6, 7, and 7.1 depending on my different installations.

I have also tried to do a brand new install and that didn't fix it either.



I have also has other users test this from my forum and they got the exact same results so it isn't anything from my end.

This is using 2.0.14

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,559
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Your session timed out while posting. Please go back and try again.
« Reply #1 on: June 30, 2017, 03:08:37 PM »
If your custom theme has a login form such as in the index.template.php or boardindex.template.php or in the login.template.php

The SMF 2.0.14 now requires the following code added in the <form> tag  just add in the closing </form> tag in any login form.

Code: [Select]
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />

This code is used to help increase security for SMF.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Drink_Tea

  • Newbie
  • *
  • Posts: 2
Re: Your session timed out while posting. Please go back and try again.
« Reply #2 on: June 30, 2017, 03:21:31 PM »
Thank you!