The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
13 views

Global Signup/Login in two wordpress site some like similar to stackoverflow?

I have two different wordpress installation at two different server one at mydomain.com and other at subdomain.mydomain.com having different database. My question is how I implement global ...
0
votes
0answers
30 views

Why WordPress not logout after I have close my browser?

The default login cookie has expiry time as "session", so suppose when I close my browser, I need to login again when I visit wp-admin. But I've found that serveral time I've closed my browser (kill ...
0
votes
0answers
47 views

wordpress_logged_in cookie not being recognized in htaccess

On my website, I have a system implemented that requires users to login before viewing any files in the wp-contents/uploads folder, specifically pdf's and doc files only. In order to do this, I have ...
1
vote
1answer
84 views

Searching hook to set cookies before <head> and avoid “headers already sent”

I have written a plugin that sets cookies, and need to avoid the "Headers already sent" PHP error by placing the code at the very top before the head section. Themes usually place wp_head just before ...
0
votes
1answer
32 views

How set a cookie from PHP and get it without refresh

I know that when use setcookie() function it create headers, and after refresh it will be available in $_COOKIES, but i need a mechanism to set cookie in this page without redirect, but to be in the ...
0
votes
1answer
16 views

How to make use of Transient API as cookie

I want to use Transient API as cookie, but I want to know if it is the best practice,and how to make transient be unique or per user. Thanks
0
votes
0answers
36 views

setcookie in functions.php does not accept arguments (variables) passed from WordPress page

I have a WordPress installation where a page (Page 1) displays certain fields from a selected user's profile (Not the logged in user but a user they have selected). A PayPal button is used to take a ...
0
votes
0answers
85 views

How to use Cookie or Session php for one page and just a password

I'm looking for to use a cookie with wordpress 4.0 and it doesn't work.( OVH) I have read that Session or Cookie are deactivate by default inside the load.php folder. Somebody could tell me how to ...
-2
votes
0answers
29 views

How can I parse wordpress authenticated user's cookie and Identify Authenticated user over MySql via C#?

I'm calling asp.net web api from wordpress page. CORS ok. I can see cookies on Controller. So how can I parse the cookie, what is the logic behind it? I have access to MySql also. I want to identify ...
0
votes
1answer
77 views

Error : Cookies are blocked or not supported by your browser

I have a multisite WordPress installation. When I am logged in as a super admin from the main website, and go to the dashboard from the main site into another site, it asks me for login details. When ...
1
vote
1answer
98 views

Change in permalink structure made javascript cookie not work correctly

My site needs a mechanism where a user is sent to agreement page when he visits the site for the first time. Once he accepts the agreement, it is saved in cookie. He can browse any page directly after ...
0
votes
1answer
22 views

Cookie with referral URL [closed]

I want to write referral URL to cookie and use it at some point to echo that referral URL on my website. What is the best way to achieve this? Thank you
0
votes
0answers
34 views

W3 Total Cache problem with password protected pages

well w3 total cache plugins is really nice and make my speed of loading more fast but seems Total cache have problem with password protected pages and posts . when the password enter and page load ...
1
vote
1answer
103 views

Can't log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”

After a server move, I'm unable to log in to my site. I get the "ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress." error when I try submitting the ...
1
vote
0answers
41 views

Website Loads Twice Unnecessarily

When I use tools.pingdom.com, I can see that my website is loading twice unnecessarily. The first time www.junkluggers.com is loaded, a cookie is set. Then part way through the loading process, ...
0
votes
0answers
44 views

!is_user_logged_in() fails

Updating to Wordpress 4 has broken this for me, and I'd like to understand how to fix it. The following code should redirect users when they are not logged in : <?php if ( !is_user_logged_in() ) ...
0
votes
1answer
59 views

Creating intro page in wordpress

I am trying to create a very simple "intro" page in wordpress which will display a 5 seconds video introduction and then will redirect to the homepage automatically. I saw that there are many plugins ...
0
votes
0answers
29 views

setCookie before headers are sent?

I was using this code in my plugin to set a cookie if a condition was met, however after updating to Wordpress 4.0 I got the message: Warning: Cannot modify header information - headers already sent ...
4
votes
2answers
60 views

How to Create a Cookieless Domain in Wordpress

How do you create a 'cookieless' domain for WordPress?
3
votes
1answer
246 views

Security error WP 4.0 + WP phpBB Bridge [closed]

so today I updated to 4.0 (glad I had backup). Everything was working fine until I tried to publish a post. There I got Are you sure you want to do this. Also had Cheatin' Uh under ...
0
votes
1answer
64 views

How to login a user with wp_set_auth_cookie on a specific blog within a multisite environment

How can you leverage wp_set_auth_cookie to programmatically login a user on a specific blog in a multisite environment? wp_set_auth_cookie doesn't allow you to set the target blog to authenticate the ...
0
votes
2answers
79 views

My php code is not being executed

I have a wordpress page that has this code in the text editor part of a web page: This page creates a cookie and houses a etst link that is only accessible to the holder of the cookie. &nbsp; ...
0
votes
0answers
34 views

Load post conditionally

I am working on a website which displays only 3 posts unless people subscribe for a newsletter. This is done by setting a cookie on validation and inserting this cookie conditionally in my queries. ...
0
votes
1answer
139 views

wp_logout action not working

I'm trying to remove some cookies set to control persistent login when the user specifically wants to log out of a website. I thought it would be as simple as: function remove_user_cookie() { ...
0
votes
0answers
25 views

Rss feeds outside the loop, how do I sort by most viewed? Cookie?

I have a wordpress site with aggregated Youtube and Vimeo clips. I use WP RSS Aggregator for this, who doesn't store anything in posts, therefor makes it hard to create a most viewed function. I was ...
0
votes
1answer
103 views

How to set a cookie based on a page Get variable?

I am trying to set a cookie, based on a GET variable from a page. The page URL looks like: mysite.com/?my_var=somevalue I'm trying this, but can't see what I'm doing wrong.. // make 'my_var' ...
0
votes
1answer
71 views

How to set a cookie for logged in users to md5($user->ID . “my_secret”)?

For all logged in visitors of my WordPress website I would like to set 2 cookies based on their user ID - so that I can use their user IDs in WordPress-unrelated PHP scripts at the same domain. In ...
0
votes
1answer
81 views

Session Cookie security questions

I am a .NET developer but I also administer all of our corporate websites, which are all Wordpress. I inherited the sites from someone who is no longer at my company. My company recently spent a ...
1
vote
2answers
388 views

ERROR: Cookies are blocked or not supported by your browser

I'm getting this error while trying to log in: ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress. Yet I have cookies enabled and not ...
0
votes
1answer
155 views

Set cookie for visitor

I'm writing a new plugin that will allow visitor to vote. After a visitor rated a post, I'd like to block double voting. I think the better way to do it is using cookie, but of course I can't insert ...
0
votes
0answers
61 views

Get user info on sub domain from WordPress installed on main domain

I have WordPress installed at www.mainsite.com. When visiting the sub domain subdomain.mainsite.com, I would like to grab the user's email address if he or she is logged in on the main site. ...
0
votes
0answers
199 views

Wordpress Varnish Age=0 or Not Caching (Cookies?)

I'm using Wordpress 3.8.1 and Varnish 3.0.5. I'm sure the Varnish is not caching, because of the VCL nightmare. And i also don't know where is the very standard / correct VCL for Wordpress. My ...
1
vote
1answer
205 views

Setcookie works on admin but not front end

I have a simple function to set a cookie to the value of whatever parameter is attached. For example, if I visit http://example.com/?devsource=http://dev.example.com/ it should set the value of the ...
2
votes
1answer
486 views

Wordpress Ajax Login without page reload

I'm currently developing a Wordpress theme where I want the user to be able to upload images before he register or log in to the site. The initial problem was, you can´t upload images to wordpress ...
0
votes
1answer
132 views

One time login on 2 different Wordpress sites

Im trying to figure out how to login one time to mydomain.com and being automatically loged in to mydomain.com/blog . I have figured out how to share tables (so that the same users on my main site, ...
2
votes
0answers
260 views

Cookie is not marked as HttpOnly [closed]

I am trying to get my wordpress driven website to be PCI compliant and the report states that we have a failure due to: "Cookie is not marked as HttpOnly: 'wordpress_test_cookie=WP+Cookie+c heck; ...
0
votes
0answers
43 views

My website resets when accessing the index page

So my wordpress theme and website is on a stage server, since it's under production. And this issue happens once in a while. Basically, if I log in as a user, and when I enter the index page, the ...
0
votes
0answers
586 views

Wordpress Cookies - wp_set_auth_cookie

I would like to make the login working to all of my wordpress sites. They are single installs, so no multisite plugins can help. I decided to go with the cookies. I store the users in the same ...
0
votes
0answers
248 views

How to handle cookies from a WordPress plugin on a cached page?

I'm attempting to write a plugin that can work with cookies on a WordPress site that uses page caching (why?). I've been following this tutorial on Esanctuary.net. I'm trying to write to the ...
0
votes
0answers
87 views

Cookie in custom page template

I need to set a cookie on a custom template (page_splash) so that the splash page only shows on the first visit every 24 hours. I have tried lots of variations of code at the top of my custom template ...
1
vote
3answers
366 views

Prevent installation of style.css cookies and file caching

I'm having a problem which I have never encountered before. When I update my style.css file within my child theme, the webpage does not use the new style. I have pinpointed that to a cookie within ...
1
vote
0answers
51 views

WP not logging in at first time

I've been experiencing a weird "bug" in my website which I have a form in the front page to do the log in, it doesn't log, redirects me to the WP-login.php and it says the Cookies may not be active in ...
1
vote
0answers
204 views

How to share WordPress session and cookies between domain and subdomain?

I have missed a lot of time by searching answer to my question. For today I have two WP installations on the one server and one DB but with different prefix. I already shared users data and meta ...
1
vote
1answer
1k views

Logout user and delete cookies from the client side?

I'd like to be able to logout the user. I can do this by calling wp_logout() on the server but if the user drops connection is there a way to log them out? The wp_logout() method clears the cookies. ...
1
vote
1answer
331 views

Get wordpress stored cookies for custom login

I've created a custom login box. I'm using wp_signon() method. Everything works well. Also i have a Remember me checkbox so i can remember user credentials next time. I know i can do it my own way of ...
0
votes
1answer
37 views

Error when setting cookie

I get this error when trying to set a cookie on a WP page. Warning: Cannot modify header information - headers already sent by(...) Any help here? It worked fine when I did the php outside of ...
0
votes
1answer
79 views

Authentication from sub-folder non-wp cookie WordPress

I have a question about user authentication in my WordPress Multisite site. My site is http://www.drezzy.it that has its own user db with a login and logout system. This is a non-WP website. When you ...
0
votes
1answer
61 views

set cookies for my whole site is not working

I'm trying to set the cookie to my site to hide a div on click action. Description of the problem. I wanna set the cookie for the whole site not for particular page. I'm setting the cookie on click ...
0
votes
1answer
335 views

Why is PHP Cookie via plugin only set when logged in as Admin and not regular users? and other questions

At first I thought it was a browser issue, but it looks like my code only sets a cookie if the user is logged in the administrator. If you are not logged into the Administrator account then it does ...
0
votes
0answers
124 views

Create and update Custom Cookie based on multiple GET and POST Values for first time visitors?

I am not exactly sure the most efficient way to write this code. I collect custom data in my forms and also in my url via get such as: Name utm_campaign URL Referrer ID Among many more. Do I ...