<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged cookie</title>
<link>https://www.question2answer.org/qa/tag/cookie</link>
<description>Powered by Question2Answer</description>
<item>
<title>Cookie Popup for GDPR Cookie Consent: Best Practices</title>
<link>https://www.question2answer.org/qa/113073/cookie-popup-for-gdpr-cookie-consent-best-practices</link>
<description>Is there any Plugin for this, or should i code it by myself?</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/113073/cookie-popup-for-gdpr-cookie-consent-best-practices</guid>
<pubDate>Tue, 02 Apr 2024 11:14:52 +0000</pubDate>
</item>
<item>
<title>Search terms are being merged despite the fact that I searched them on different sites</title>
<link>https://www.question2answer.org/qa/102020/search-terms-being-merged-despite-searched-different-sites</link>
<description>

&lt;p&gt;I have encountered a search issue which causes the terms to merge with other q2a sites.&lt;/p&gt;

&lt;p&gt;Have a look at this,&lt;/p&gt;

&lt;p&gt;I have first searched for the term&amp;nbsp;&lt;strong&gt;Blobs&lt;/strong&gt;&amp;nbsp;on this site.&lt;/p&gt;

&lt;p&gt;Later on when I went to search for&amp;nbsp;&lt;strong&gt;Partition&amp;nbsp;&lt;/strong&gt;on systemrequest.net (which was build with&amp;nbsp;q2a), i found that the term&amp;nbsp;&lt;strong&gt;Blobs&lt;/strong&gt;&amp;nbsp;is also shown in the search list though I haven't searched for the term on the site.&lt;/p&gt;

&lt;p&gt;And then when I return back to Q2A, I find both the terms: the one I&amp;nbsp;searched on q2a and systemrequest being listed here too.&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=2170143613453135923&quot; style=&quot;height:357px; width:300px&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=8327606426541980532&quot; style=&quot;height:302px; width:300px&quot;&gt;&lt;/p&gt;

&lt;p&gt;Is there something to do with the cookies?&lt;/p&gt;

&lt;p&gt;Ansgar, Have you noticed this before?&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/102020/search-terms-being-merged-despite-searched-different-sites</guid>
<pubDate>Sat, 25 Jun 2022 04:31:16 +0000</pubDate>
</item>
<item>
<title>Php load site based on cookie</title>
<link>https://www.question2answer.org/qa/100012/php-load-site-based-on-cookie</link>
<description>

&lt;p&gt;Hello there,&lt;/p&gt;

&lt;p&gt;I need to load site based on cookie, i write code to validate that like this.&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#c586c0&quot;&gt;if&lt;/span&gt;(!&lt;span style=&quot;color:#dcdcaa&quot;&gt;isset&lt;/span&gt;(&lt;span style=&quot;color:#9cdcfe&quot;&gt;$_COOKIE&lt;/span&gt;[&lt;span style=&quot;color:#ce9178&quot;&gt;'cookie'&lt;/span&gt;])){&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#9cdcfe&quot;&gt;$domain&lt;/span&gt; = &lt;span style=&quot;color:#9cdcfe&quot;&gt;$_SERVER&lt;/span&gt;[&lt;span style=&quot;color:#ce9178&quot;&gt;'SERVER_NAME'&lt;/span&gt;];&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#dcdcaa&quot;&gt;setcookie&lt;/span&gt;(&lt;span style=&quot;color:#ce9178&quot;&gt;'cookie'&lt;/span&gt;, &lt;span style=&quot;color:#9cdcfe&quot;&gt;$cookie&lt;/span&gt;, &lt;span style=&quot;color:#dcdcaa&quot;&gt;time&lt;/span&gt;() + &lt;span style=&quot;color:#b5cea8&quot;&gt;31536000&lt;/span&gt;, &lt;span style=&quot;color:#ce9178&quot;&gt;'/'&lt;/span&gt;, &lt;span style=&quot;color:#9cdcfe&quot;&gt;$domain&lt;/span&gt;);&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#dcdcaa&quot;&gt;header&lt;/span&gt;(&lt;span style=&quot;color:#ce9178&quot;&gt;'Location: '&lt;/span&gt;.&lt;span style=&quot;color:#9cdcfe&quot;&gt;$_SERVER&lt;/span&gt;[&lt;span style=&quot;color:#ce9178&quot;&gt;'REQUEST_URI'&lt;/span&gt;]); &lt;span style=&quot;color:#6a9955&quot;&gt;// reload&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;But when cookie created first time i got error.&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=12577414993404535963&quot; style=&quot;height:340px; width:600px&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Helvetica Neue&quot;&gt;&lt;span style=&quot;font-size:13px&quot;&gt;I think&amp;nbsp;header('Location: '.$_SERVER['REQUEST_URI']); execute multiple times, How to fix this ? its that right way to do ? or any other thing i need to change ?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Helvetica Neue&quot;&gt;&lt;span style=&quot;font-size:13px&quot;&gt;Please advise, Thank you&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/100012/php-load-site-based-on-cookie</guid>
<pubDate>Wed, 09 Mar 2022 14:59:21 +0000</pubDate>
</item>
<item>
<title>How can I delete all of my users' cookies for my website?</title>
<link>https://www.question2answer.org/qa/88873/how-can-i-delete-all-of-my-users-cookies-for-my-website</link>
<description>I don't know how to delete all of my users' cookies for my website, because whenever I do changes in qa-style.css the changes can't be seen on the normal browser but can be seen in incognito mode or after clearing cookies.&lt;br /&gt;
So clearly it's a cookie thing, but i can't tell my users individually to clear cookies for my website anytime I do changes.&lt;br /&gt;
I really need a way to do something about it.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/88873/how-can-i-delete-all-of-my-users-cookies-for-my-website</guid>
<pubDate>Wed, 04 Nov 2020 14:25:29 +0000</pubDate>
</item>
<item>
<title>Cookies Notice =&gt; which Plugin can I use for this ?</title>
<link>https://www.question2answer.org/qa/55784/cookies-notice-which-plugin-can-i-use-for-this</link>
<description>

&lt;p&gt;Hi Guys,&lt;/p&gt;

&lt;p&gt;I live in Europe, and the registration ask us to put &lt;strong&gt;Cookies Notice User validation &lt;/strong&gt;-&lt;/p&gt;

&lt;p&gt;Is there a simple plugin I can put on my &lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://odlg.org/Question-Plante-Medicinale-Propriete-Bienfaits-Effets-Secondaires-Dosage&quot;&gt;Q2A&lt;/a&gt;&lt;/strong&gt; list of questions to said that my &lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://odlg.org&quot;&gt;Forum&lt;/a&gt;&lt;/strong&gt; collect cookies.&lt;/p&gt;

&lt;p&gt;I would like to put &lt;strong&gt;on the footer of each pages&lt;/strong&gt; with a &quot;validation clic&quot; to said &lt;strong&gt;&quot;OK (then it disapear)&quot; + &quot;a link to a page&lt;/strong&gt; about cookies informations policy&quot;.&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/55784/cookies-notice-which-plugin-can-i-use-for-this</guid>
<pubDate>Sat, 14 Jan 2017 10:05:31 +0000</pubDate>
</item>
<item>
<title>Administration security extensions</title>
<link>https://www.question2answer.org/qa/55341/administration-security-extensions</link>
<description>

&lt;p&gt;Recently I had some serious issues with security. I felt few features might have improved situation.&lt;/p&gt;

&lt;p&gt;In Admin panel,&lt;/p&gt;

&lt;ol&gt;

&lt;li&gt;A Button &quot;Logout All users&quot; - which will magically sign-out all logged-in users&lt;/li&gt;

&lt;li&gt;Select session cookie name - This can be changed to bypass already logged-in users with 'Remember' option.&lt;/li&gt;

&lt;li&gt;Reset password for range of users with random-complex string &amp;amp; send mail to user&lt;/li&gt;&lt;/ol&gt;

&lt;p&gt;I am not sure how many of these are feasible, but good to have in 1.8&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/55341/administration-security-extensions</guid>
<pubDate>Thu, 15 Dec 2016 16:15:07 +0000</pubDate>
</item>
<item>
<title>How can I know for how long a user session started?</title>
<link>https://www.question2answer.org/qa/49671/how-can-i-know-for-how-long-a-user-session-started</link>
<description>Hi, is there a way (I guess with cookies) to know for how long a user (not registered) has being on my Q&amp;amp;A site, Is there a start session mechanism? Thanks.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/49671/how-can-i-know-for-how-long-a-user-session-started</guid>
<pubDate>Fri, 01 Jan 2016 06:42:34 +0000</pubDate>
</item>
<item>
<title>Improving code: 3 widgets must check if userid or cookieid</title>
<link>https://www.question2answer.org/qa/41885/improving-code-3-widgets-must-check-if-userid-or-cookieid</link>
<description>I have a tiny plugin that provides 3 widgets.&lt;br /&gt;
&lt;br /&gt;
Each widget must identify the user. He can be anonymous or guest.&lt;br /&gt;
&lt;br /&gt;
That is why I check his id by:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$userid = qa_get_logged_in_userid();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$cookieid = isset($userid) ? qa_cookie_get() : qa_cookie_get_create();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// ...&lt;br /&gt;
&lt;br /&gt;
I do this in all 3 widgets.&lt;br /&gt;
&lt;br /&gt;
Can't I do it centralized? Call a layer or something beforehand, store this data (just PHP, no database) and then access it by each widget?&lt;br /&gt;
&lt;br /&gt;
Thanks for your help.&lt;br /&gt;
Kai</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/41885/improving-code-3-widgets-must-check-if-userid-or-cookieid</guid>
<pubDate>Wed, 03 Dec 2014 15:24:31 +0000</pubDate>
</item>
<item>
<title>Identifying a user using cookieid - unique?</title>
<link>https://www.question2answer.org/qa/41358/identifying-a-user-using-cookieid-unique</link>
<description>

&lt;p&gt;
	For a plugin i need to track an anonymous user over the pages he is navigating.&lt;/p&gt;


&lt;p&gt;
	I would use the cookieid for this purpose:&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;$cookieid=qa_cookie_get();&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	However, I am not sure if the cookieid could not created twice for two different users (?!)&lt;/p&gt;


&lt;p&gt;
	Should I also store the IP address to be on the safe side?&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/41358/identifying-a-user-using-cookieid-unique</guid>
<pubDate>Tue, 18 Nov 2014 07:17:12 +0000</pubDate>
</item>
<item>
<title>Is there any expiration time (1 day ) for Remember Me Option ?</title>
<link>https://www.question2answer.org/qa/35430/is-there-any-expiration-time-1-day-for-remember-me-option</link>
<description>Is there any expiration time (1 day ) for Remember Me Option ?&lt;br /&gt;
&lt;br /&gt;
Like the site will only remember me (no need to login after open broswer again) in a day and the next day you will have to login again. Is there any option for this? Or where I can modify it in the code?&lt;br /&gt;
&lt;br /&gt;
Thanks !</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/35430/is-there-any-expiration-time-1-day-for-remember-me-option</guid>
<pubDate>Thu, 26 Jun 2014 15:56:11 +0000</pubDate>
</item>
<item>
<title>Bug ? define('QA_COOKIE_DOMAIN', '.example.com');  does not work well when logout.</title>
<link>https://www.question2answer.org/qa/26200/define-qa_cookie_domain-example-does-work-well-when-logout</link>
<description>

&lt;p&gt;
	I received a hint to set a cookie domai in config.php to log in to www.page.com and page.com at the same time.
&lt;br&gt;
	
&lt;br&gt;
	That does work very well. But, when i log out the logout does only work for one of both .
&lt;br&gt;
	
&lt;br&gt;
	Is that a bug or my hosting or what could it be ???&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Edit 1&lt;/p&gt;


&lt;p&gt;
	Tryinng to do so on the demo page does not work as&lt;/p&gt;


&lt;p&gt;
	&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.demo.question2answer.org/&quot;&gt;http://www.demo.question2answer.org/&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;
	shows a not found error.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/26200/define-qa_cookie_domain-example-does-work-well-when-logout</guid>
<pubDate>Sun, 28 Jul 2013 21:40:10 +0000</pubDate>
</item>
<item>
<title>How to enable login when existing site is moved to different domain</title>
<link>https://www.question2answer.org/qa/23709/how-enable-login-when-existing-site-moved-different-domain</link>
<description>I am transplanting site in certain domain to local server. I can't login to moved site. This site is V1.6.&lt;br /&gt;
&lt;br /&gt;
Cookie (qa_key) is unacquirable seems to be cause. Error: &amp;quot;key cookie missing&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
I think that security process of CSRF have blocked login process. Is there any solution?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/23709/how-enable-login-when-existing-site-moved-different-domain</guid>
<pubDate>Wed, 08 May 2013 21:10:56 +0000</pubDate>
</item>
<item>
<title>Cookie agreement and terms and conditions to facebook users and normal</title>
<link>https://www.question2answer.org/qa/22003/cookie-agreement-and-terms-conditions-facebook-users-normal</link>
<description>Hello,&lt;br /&gt;
&lt;br /&gt;
How do I add cookie use agreement and terms of conditions to registered users via facebook?&lt;br /&gt;
&lt;br /&gt;
And also how do i add this terms to normal registration form? &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Thankyou</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/22003/cookie-agreement-and-terms-conditions-facebook-users-normal</guid>
<pubDate>Wed, 06 Mar 2013 06:21:47 +0000</pubDate>
</item>
<item>
<title>Incorrect function qa_cookie_get_create() ?</title>
<link>https://www.question2answer.org/qa/20534/incorrect-function-qa_cookie_get_create</link>
<description>

&lt;p&gt;
	I am checking the function qa_cookie_get_create() in qa-app-cookies.php, we have the following code there (v1.5.4):&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function qa_cookie_get_create()
&lt;br&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;require_once QA_INCLUDE_DIR.'qa-db-cookies.php';
&lt;br&gt;
	
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$cookieid=qa_cookie_get();
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (isset($cookieid) &amp;amp;&amp;amp; qa_db_cookie_exists($cookieid))
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;; // cookie is valid
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;else
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$cookieid=qa_db_cookie_create(qa_remote_ip_address());
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;setcookie('qa_id', $cookieid, time()+86400*365, '/', QA_COOKIE_DOMAIN);
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$_COOKIE['qa_id']=$cookieid;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;return $cookieid;
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	As far as I can see, in case that $cookieid is set already, it goes to line &lt;strong&gt;setcookie()&lt;/strong&gt; to set the cookie again?!&lt;/p&gt;


&lt;p&gt;
	Shouldn't it be that it returns the $cookieid immediately - &lt;strong&gt;without setting it anew!&lt;/strong&gt;
&lt;br&gt;
	Like that:&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (isset($cookieid) &amp;amp;&amp;amp; qa_db_cookie_exists($cookieid))&lt;/span&gt;
&lt;br&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;return $cookieid;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt; // cookie is valid &lt;/span&gt;
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Kai&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/20534/incorrect-function-qa_cookie_get_create</guid>
<pubDate>Fri, 11 Jan 2013 03:56:43 +0000</pubDate>
</item>
<item>
<title>When to use qa_cookie_get() and qa_cookie_get_create() ?</title>
<link>https://www.question2answer.org/qa/20520/when-to-use-qa_cookie_get-and-qa_cookie_get_create</link>
<description>

&lt;p&gt;
	Both functions are defined in &lt;strong&gt;qa-app-cookies.php&lt;/strong&gt;.&lt;/p&gt;


&lt;p&gt;
	function qa_cookie_get() → &quot;Return the user identification cookie sent by the browser for this page request, or null if none&quot;&lt;/p&gt;


&lt;p&gt;
	function qa_cookie_get_create() → &quot;Return user identification cookie sent by browser if valid, or create a new one if not.&amp;nbsp; &amp;nbsp; Either way, extend for another year (this is used when an anonymous post is created)&quot;&lt;/p&gt;


&lt;p&gt;
	
&lt;br&gt;
	This question originated from finding a &lt;a href=&quot;http://www.question2answer.org/qa/20376/solution-for-bug-headers-already-sent-theme-base-php-cookies&quot; rel=&quot;nofollow&quot;&gt;bug in the badges plugin&lt;/a&gt; where qa_cookie_get_create() is called:&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;qa_db_query_sub(
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;'INSERT INTO ^eventlog (datetime, ipaddress, userid, handle, cookieid, event, params) '.
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;'VALUES (NOW(), $, $, $, #, $, $)',
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;qa_remote_ip_address(), $user_id, $handle, &lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;qa_cookie_get_create()&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;, 'badge_awarded', 'badge_slug='.$badge_slug.($object_id?&quot;\t&quot;.'postid='.$object_id:'')
&lt;br&gt;
	);&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	I replaced &lt;span style=&quot;color:#ff0000;&quot;&gt;qa_cookie_get_create()&lt;/span&gt; with &lt;span style=&quot;color:#ff0000;&quot;&gt;qa_cookie_get() &lt;/span&gt;and would like to know about side effects.&lt;/p&gt;


&lt;p&gt;
	Thank you!
&lt;br&gt;
	Kai&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/20520/when-to-use-qa_cookie_get-and-qa_cookie_get_create</guid>
<pubDate>Thu, 10 Jan 2013 09:47:17 +0000</pubDate>
</item>
<item>
<title>Using Javascript to detect logged-in user?</title>
<link>https://www.question2answer.org/qa/17379/using-javascript-to-detect-logged-in-user</link>
<description>I need to insert specific javascript for ckeditor, and need to check in javascript if the user is logged in in q2a.&lt;br /&gt;
&lt;br /&gt;
What is the best way to do this? Is there a cookie set for logged in users that I can read using javascript?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/17379/using-javascript-to-detect-logged-in-user</guid>
<pubDate>Sun, 26 Aug 2012 06:17:20 +0000</pubDate>
</item>
<item>
<title>That does it mean?</title>
<link>https://www.question2answer.org/qa/13277/that-does-it-mean</link>
<description>

&lt;p&gt;
	Hello,&lt;/p&gt;


&lt;p&gt;
	Please help. I start install Q2A on my website and...&lt;/p&gt;


&lt;p&gt;
	&lt;img alt=&quot;&quot; src=&quot;http://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=9401552284584785463&quot; style=&quot;width: 874px; height: 542px&quot;&gt;&lt;/p&gt;


&lt;p&gt;
	That I need to do? How I can solve this problem?&lt;/p&gt;


&lt;p&gt;
	Thank you!&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/13277/that-does-it-mean</guid>
<pubDate>Tue, 06 Mar 2012 07:51:10 +0000</pubDate>
</item>
<item>
<title>As a facebook application, issue with IE, cookies, p3p and constant refresh</title>
<link>https://www.question2answer.org/qa/8987/facebook-application-issue-with-cookies-constant-refresh</link>
<description>

&lt;p&gt;
	Quick background : I am using Q2A to setup community questions to speakers at a convention, that can be voted on due to there being limited question time, so the best questions will get put forward to the speakers on the convention weekend.&lt;/p&gt;


&lt;p&gt;
	To extend the reach of the site, clever me thought I would use the facebook app ability with Q2A, this works really well ... but only on FF and Chrome.&lt;/p&gt;


&lt;p&gt;
	On IE the page in the iframe on facebook repetitively refreshes.&lt;/p&gt;


&lt;p&gt;
	From what I can gather this has something possibly to do with&lt;a rel=&quot;nofollow&quot; href=&quot;http://stackoverflow.com/questions/5083484/facebook-application-refresh-automatically&quot;&gt; cookies in iframes and the p3p header&lt;/a&gt;.&lt;/p&gt;


&lt;p&gt;
	I tried adding the following as per the FB developers documentation via the layout (just as a quick effort), but it does not seem to help .. any ideas on where I should try patching the code via php? Do I need specific policies set?&lt;/p&gt;


&lt;pre id=&quot;line100&quot;&gt;
&amp;lt;&lt;span class=&quot;start-tag&quot;&gt;meta&lt;/span&gt;&lt;span class=&quot;attribute-name&quot;&gt; http-equiv&lt;/span&gt;=&lt;span class=&quot;attribute-value&quot;&gt;&quot;P3P&quot; &lt;/span&gt;&lt;span class=&quot;attribute-name&quot;&gt;content&lt;/span&gt;=&lt;span class=&quot;attribute-value&quot;&gt;'CP=&quot;HONK&quot;'&lt;/span&gt;&amp;gt;
&lt;/pre&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/8987/facebook-application-issue-with-cookies-constant-refresh</guid>
<pubDate>Thu, 01 Sep 2011 08:59:18 +0000</pubDate>
</item>
<item>
<title>Change method of session-cookie at multi install</title>
<link>https://www.question2answer.org/qa/6144/change-method-of-session-cookie-at-multi-install</link>
<description>Hi everyone.&lt;br /&gt;
&lt;br /&gt;
Log in can be done also to the management screen on the other sites by logging in the management screen when two or more sites are installed in the same domain.&lt;br /&gt;
&lt;br /&gt;
To deal with this, I want to modify &amp;quot;qa_session&amp;quot; of qa-include/qa-app-users.php.&lt;br /&gt;
setcookie(PATH[4th parameter]) of qa_set_session_cookie() and qa_clear_session_cookie() function ?&lt;br /&gt;
&lt;br /&gt;
Please teach the better correction method.&lt;br /&gt;
&lt;br /&gt;
Best regards.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/6144/change-method-of-session-cookie-at-multi-install</guid>
<pubDate>Mon, 25 Apr 2011 02:58:14 +0000</pubDate>
</item>
<item>
<title>Single Sign On Integration</title>
<link>https://www.question2answer.org/qa/1796/single-sign-on-integration</link>
<description>Hi,&lt;br /&gt;
I have a website which is built using GWT.I want to integrate Question2Answer website into my website and i want it to be Single Sign on(SSO).That is once the user log's in into my website ,he is automatically logged on into Question2Answer.I have followed all the steps required to perform SSO and i have the the Question2Answer database up in my MYSQL DATABASE.&lt;br /&gt;
&lt;br /&gt;
My functionality is to embed this Q2A website into an iframe in my main website.That is when user clicks on &amp;quot;Post a Question&amp;quot; this Iframe opens up with user already logged in into the Question2Answer website.&lt;br /&gt;
&lt;br /&gt;
Now ,i have gone through the qa-external-users.php file and i understand that i need to pass the cookie/session into this file.&lt;br /&gt;
&lt;br /&gt;
My questions are &lt;br /&gt;
a) Is it possible for this to happen&lt;br /&gt;
b) Can we integrate Question2Answer website with a website built on GWT(or any other java script website) with a Single Sign On&lt;br /&gt;
c) Is there any sample example which anyone can provide me with the help of which i can integrate SSO?&lt;br /&gt;
&lt;br /&gt;
Also i am really impressed with the Q2A site documentation.It makes the job to integrate website so easily...i really wish there should be a way to integrate this to a GWT website.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/1796/single-sign-on-integration</guid>
<pubDate>Thu, 08 Jul 2010 14:11:16 +0000</pubDate>
</item>
</channel>
</rss>