All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Complete a form section once then recorded for a session

I want a user to complete a form on my site which consists of a product section and then a shipping section to collect their address info. Once user submits form the first time, a thank you page ...
1
vote
1answer
47 views

How to store post ID's in cookie or session to display the same posts later

I run a wp_query that fetches 4 posts from db with rand() and displays them in a grid to visitors. What I need is to display the exact same posts the query fetched the first time, a second time to ...
0
votes
2answers
1k views

Unset session variable on page reload / setup but exclude AJAX

I'm currently trying to unset a session variable in WordPress if the page get's reloaded. I've tried a lot but it's not working like I want it. This is my function: /** * Unset filter session if ...
0
votes
1answer
18 views

Use WP user status (logged_in) to manage access to independent application

I have WP installed in the root of my website. In the same directory there’s a completely independent application. What I want to do is the following: when the user accesses the page containing the ...
0
votes
1answer
108 views

ajax polling with admin-ajax.php

Is it possible to do ajax polling in WordPress with admin-ajax.php for example every 300ms? I have tried this and it appears that doing the ajax request with admin-ajax takes longer than the ...
0
votes
0answers
118 views

How to do polling of session variable with ajax in WordPress admin plugin for progress bar

I'm working on a plugin. I have a somewhat long running php process and I am trying to show a progress bar by polling a session variable with ajax and displaying on the front end. I previously had it ...
2
votes
1answer
336 views

Find out what is using PHP sessions in WordPress

Is there a way to find out what is using PHP sessions or spawning PHP processes? My Wordpress site gets heavy traffic (3.5 million hits per month). We discovered recently that we had permissions set ...
2
votes
1answer
2k views

How to log out everywhere else, destroy all sessions “all other devices”?

WordPress panel service "log out everywhere else" is doing a nice job. I want to use this as a function outside the panel. Screenshoot
0
votes
1answer
2k views

The session works on the local server, but not on the web server

I have a problem with a session, it works fine on the local server, but it's not visible on the server, the project is in wordpress, do I have to set something special about wordpress? This is my code ...
0
votes
2answers
637 views

PHP Session Variable to WordPress Error

I have been trying to figure out how to add session variables to WordPress Custom Pages for the past few days but have still been unable to find a solution. From researching it seems WordPress does ...
0
votes
1answer
703 views

Allow user to select location and then set cookie for location in WordPress

I am needing to allow a user to select a location from a dropdown on the front-end, that then sets a session cookie for that chosen location... any help here? Ok so this is the outlined task: ...
1
vote
0answers
415 views

iframe does not store session/cookie when refresh parent

I have been searching around but there was no specific answer or any indication about the problem I am facing. I have a domain, parent.com, which is just a full screen container of a WordPress-...
0
votes
1answer
577 views

Custom $_SESSION expires too early

In my custom Wordpress theme I want to keep some user's data stored over time (let's say 5 days) using $_SESSION variable. At a certain point in my theme I do a very simple thing: session_start(); $...
0
votes
1answer
910 views

Can we stop session reset if page reloads?

I started a session and assigned a value and based on the value other function executes but the page reloads after first session and obviously session resets and the other page where I am calling this ...
0
votes
1answer
4k views

Store and Change Session variable - PHP SESSION VARIABLE

I would like to change a session variable which will change another variable in two different places. One variable determines what posts the user will see which is in my custom post archive file(...
1
vote
2answers
3k views

how to create and show sessions in word press?

I am new to word press but know all the required PHP skills. I am using a form to create session in one page and then accessing those sessions in another page. I have done this already without word ...
1
vote
1answer
4k views

Why does $_SESSION only work when I am logged in?

I am including a pure PHP library (nothing to do with WordPress) into a few of my page templates. This library calls PHP session_start() function and references the $_SESSION["cart"] global variable. ...
4
votes
1answer
505 views

Display message once per session to users with a specific role

I need to display a message to only users with a specific role. The message should appear either as soon as the user logs in or if they re-open their browser after having closed it when logged in to ...
1
vote
1answer
3k views

Fatal Error relating to sessions.php

here is the error code I have Warning: Unterminated comment starting line 2079 in /home/teamspor/public_html/wp-includes/user.php on line 2079 Warning: require(/home/teamspor/public_html/wp-...
0
votes
0answers
1k views

How to 'remember' a site member's last visited page?

I've seen this on a couple of sites - they offer a multipage tutorials to site members. When you return to the site, they have a link that takes to the last page of the tutorial you were on. How is ...
2
votes
2answers
1k views

Should I store my Facebook access tokens?

I've built a custom login page for a Wordpress site which uses Facebook for authentication. Is there any reason to store the Facebook access token in my WP database, or does it make more sense to use ...
0
votes
0answers
276 views

White screen after login attempt

In my wordpress site, I built a login area. In my page-login.php I ask the user to enter his login information which after click on submit will be sent to the same page - on top of the page his ...
0
votes
1answer
6k views

Get my site session in wordpress?

I am using a custom site build in zend frameword, i also have a wordpress installed in this directory, for example: www.mywordpressSite.com // here is my wordpress site.. www.mywordpressSite.com/...
1
vote
1answer
191 views

Unique session WordPress

I want to allow only one session at the time across browsers and PCs. I want to "disconect" or log out to the old session if a new session starts in Wordpress.
0
votes
1answer
178 views

Where are Sessions are being started? [closed]

I have this site here http://www.taranmarlowjewelry.com/, I am using twentyeleven theme and there is a session I need to adjust called 'PHPSESSID' The problem I having with PHPSESSID is that when ...
0
votes
1answer
844 views

Wordpress & PHP sessions

I am using a plugin called WP events manager, I would like to add custom functionality so that each event can be 'added' to a 'basket' then at the end the user can go the the 'checkout' and register ...
2
votes
1answer
2k views

integrating external php library into wordpress- the right way

If I were to load a custom library into wordpress, what would be the best place to add it? Since there are a bunch of global vars defined at the top of the library, I would not want that to be done ...
-1
votes
1answer
2k views

PHP $_session is not work in wordpress

why PHP $_session is not working in wordpress my php code is session_start(); session_register('lang_opt'); $_SESSION['lang_opt'] = $_POST['lang_opt']; $mylang = $_SESSION['lang_opt']; echo $...