<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Cannot login (No _CSRFToken exists in session)</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Cannot-login-No-_CSRFToken-exists-in-session-79948</link>
        <description></description>
        <pubDate>Wed, 20 May 2026 02:51:02 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Cannot-login-No-_CSRFToken-exists-in-session-79948" rel="self" type="application/rss+xml" />

                <item>
          <title>Cannot login (No _CSRFToken exists in session)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236987#post2236987</link>
          <description><![CDATA[<p>Hi Djulia, </p>
<p>Is this happening on 2.65? </p>
<p>In /lib/common.php you can log what's happening by adding this code in security_dieOnInvalidCsrfToken()</p>
<p><code>function security_dieOnInvalidCsrfToken() {<br /><br />  ### Validate for CSRF Token<br />  $errors = ''; <br />  $token = @$_POST['_CSRFToken'];<br />  if     (array_key_exists('_CSRFToken', $_GET))      { $errors .= t("Security Error: _CSRFToken is not allow in GET urls, try using POST instead.") . "\n"; }  <br />  elseif (!array_key_exists('_CSRFToken', $_SESSION)) { $errors .= t("Security Error: No _CSRFToken exists in session.  Try reloading previous page.") . "\n"; }  <br />  elseif ($token == '')                               { $errors .= t("Security Error: No _CSRFToken value was submitted.") . "\n";  }  <br />  elseif ($token != $_SESSION['_CSRFToken'])          { $errors .= t("Security Error: Invalid _CSRFToken.") . "\n"; }  <br />  // <br />  if ($errors) {<br /><span style="color:#ff0000;">    @trigger_error($errors, E_USER_NOTICE);</span><br />    die($errors);<br />  }<br />}</code></p>
<p>My guess is that the server is erasing your session files after a period of time.  But I'd like to know what the value of $token and <span>$_SESSION['_CSRFToken'] is when you get that error.</span></p>
<p><span>If you add the logging you'll be able to record when anyone gets that error.  (And if you need to ensure it doesn't happen just comment out the die temporarily).</span></p>
<p><span>Hope that helps!  Let me know what you find out.  Thanks!</span></p>]]></description>
          <pubDate>Tue, 30 Jun 2015 19:34:31 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236987#post2236987</guid>
        </item>
                <item>
          <title>Cannot login (No _CSRFToken exists in session)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236982#post2236982</link>
          <description><![CDATA[<p>Oops, I make an error on the post.<br /><br />The error message is: "Security Error: Invalid _CSRFToken."</p>
<p>No : Cannot login (No _CSRFToken...</p>
<p><span>Sorry</span>!</p>]]></description>
          <pubDate>Sat, 27 Jun 2015 05:53:08 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236982#post2236982</guid>
        </item>
                <item>
          <title>Cannot login (No _CSRFToken exists in session)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236981#post2236981</link>
          <description><![CDATA[<p>I use this on record_presave :</p>
<p>function _antiFlood($tableName, $isNewRecord, $oldRecord) {<br />    if(@$_SESSION['last_session_request'] &gt; time() - 1) {<br />        die('Thanks to wait <span>a second!</span>');<br />    }<br />    $_SESSION['last_session_request'] = time();<br />}</p>
<p>Do you think that can interfere?</p>
<p>Thanks!</p>
<p>Djulia</p>]]></description>
          <pubDate>Sat, 27 Jun 2015 05:45:13 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236981#post2236981</guid>
        </item>
                <item>
          <title>Cannot login (No _CSRFToken exists in session)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236980#post2236980</link>
          <description><![CDATA[<p>Hi Dave,</p>
<p>The problem occurs mainly when a record is saved.<br />But, it is always very random</p>
<p>I have just applied this solution:</p>
<p>update /lib/database_functions.php and replace all instances of this:</p>
<p><strong>session_write_close()</strong></p>
<p>with this:</p>
<p><strong>#session_write_close()</strong></p>
<p><a href="http://www.interactivetools.com/forum/forum-posts.php?postNum=2235780#post2235780" rel="nofollow">http://www.interactivetools.com/forum/forum-posts.php?postNum=2235780#post2235780</a></p>
<p>Thanks!</p>
<p>Djulia</p>]]></description>
          <pubDate>Sat, 27 Jun 2015 05:23:58 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236980#post2236980</guid>
        </item>
                <item>
          <title>Cannot login (No _CSRFToken exists in session)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236959#post2236959</link>
          <description><![CDATA[<p>Hi Dave,</p>
<p>I have again this problem (error) intermittently (Firefox and Chrome).<br />Do you have an idea which can direct me towards a solution?<br /><br />I deactivated the Check Referer option.<br />Do you think that can help to correct?</p>
<p>Thanks!</p>
<p>Djulia</p>]]></description>
          <pubDate>Thu, 25 Jun 2015 09:41:21 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236959#post2236959</guid>
        </item>
                <item>
          <title>Cannot login (No _CSRFToken exists in session)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236232#post2236232</link>
          <description><![CDATA[<p>Hi Karls,</p>
<p>If you'd like I can upgrade the CMS for you and test and resolve any issues.  Just email me CMS and FTP login details to dave@interactivetools.com (don't post login details to the forum).</p>
<p>My guesses as to the cause are perhaps that a file didn't get uploaded during the upgrade (happens with FTP servers/clients occasionally) or there's a plugin that is interfering with the login process.  But I'm really not sure, we'd have to investigate.</p>
<p>Let me know, thanks!.</p>]]></description>
          <pubDate>Sun, 08 Mar 2015 22:55:27 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236232#post2236232</guid>
        </item>
                <item>
          <title>Cannot login (No _CSRFToken exists in session)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236221#post2236221</link>
          <description><![CDATA[<p>Hi Daryl,</p>
<p>Thanks for your follow up.<br />I continued to searched about the problem and moved to downgrade on more version down (2.53) and the error message disappeared but still not able to log in.</p>
<p>Finally i "refreshed" (factory cleanup) my Firefox from troubleshooting and my problem resolved.<br />It was definitely something in the browser only.</p>
<p>Thanks again,<br />Karls</p>]]></description>
          <pubDate>Fri, 06 Mar 2015 23:57:50 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236221#post2236221</guid>
        </item>
                <item>
          <title>Cannot login (No _CSRFToken exists in session)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236215#post2236215</link>
          <description><![CDATA[<p>Hi Karls,</p>
<p>I can't replicate the issue on my local server, can you please send in a Support Request with the log in details, the cms admin url(don't post them here), and what version your Firefox is so we can take a closer look?</p>
<p><a href="https://www.interactivetools.com/support/email_support_form.php?priority=free" rel="nofollow">https://www.interactivetools.com/support/email_support_form.php?priority=free</a></p>
<p>Include a link to this forum post for reference.</p>
<p>Thanks,</p>]]></description>
          <pubDate>Fri, 06 Mar 2015 09:16:19 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236215#post2236215</guid>
        </item>
                <item>
          <title>Cannot login (No _CSRFToken exists in session)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236208#post2236208</link>
          <description><![CDATA[<p>Hi Daryl,</p>
<p>Nothing worked from the suggested post. The problem is remain from Firefox that i use as developing browser. Chrome is working...</p>
<p>I downgraded the cmsb to 2.63 but the problem is the same...</p>
<p>Karls</p>]]></description>
          <pubDate>Thu, 05 Mar 2015 23:52:14 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236208#post2236208</guid>
        </item>
                <item>
          <title>Cannot login (No _CSRFToken exists in session)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236195#post2236195</link>
          <description><![CDATA[<p>Hi Karls,</p>
<p>Please check out this thread about "<span>Security Error: No _CSRFToken exists in session. Try reloading previous page." issue.</span></p>
<p><a href="https://www.interactivetools.com/forum/forum-posts.php?postNum=2235000#post2235000" rel="nofollow">https://www.interactivetools.com/forum/forum-posts.php?postNum=2235000#post2235000</a></p>
<p>Please let me know if the solution from that thread resolves the issue you were having.</p>
<p>Thanks,</p>]]></description>
          <pubDate>Thu, 05 Mar 2015 14:21:05 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236195#post2236195</guid>
        </item>
                <item>
          <title>Cannot login (No _CSRFToken exists in session)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236175#post2236175</link>
          <description><![CDATA[<p>Hi,</p>
<p>I just finished a new 2.64 final release setup and everything worked fine. After i tried to login from another computer i get Security Error: No _CSRFToken exists in session. Try reloading previous page.</p>
<p>I searched the forum for other related posts but no solution from these applied well for me.</p>
<p>PS1: from Chrome (latest) i can login but from firefox 36 the problem remain (after a full cleanup) the same...</p>
<p>PS2: in the Firefox there is no new cookie creation in the specific website. Every other cmsb works great...</p>
<p>Please advise,<br />Karls</p>]]></description>
          <pubDate>Tue, 03 Mar 2015 06:37:06 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236175#post2236175</guid>
        </item>
              </channel>
    </rss>
  