{"id":5688220,"date":"2015-01-19T14:13:24","date_gmt":"2015-01-19T14:13:24","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/session-problem-solved\/"},"modified":"2016-08-22T15:34:21","modified_gmt":"2016-08-22T15:34:21","slug":"session-problem-solved","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/session-problem-solved\/","title":{"rendered":"Session Problem Solved"},"content":{"rendered":"<p>Dear ahsanul, <\/p>\n<p>There was a bug regarding opening session in the plugin. We discovered that you were attempting to create session on wp_head action. Because of head already printed to screen it was prompting an session error and &#8220;Only first time visit&#8221; feature was not working.<\/p>\n<p>We have moved the action under init and it started to work. Please update your code with using the following code.<\/p>\n<p>add_action( &#8216;init&#8217;, &#8216;wpwm_sessionID&#8217; );<\/p>\n<p>Tolga &#8211; 34wp.com<\/p>\n<p>https:\/\/wordpress.org\/plugins\/wp-welcome-message\/<\/p>\n","protected":false},"template":"","class_list":["post-5688220","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5688220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5688220\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5688220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}