Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [session]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
753 views

Custom post type search using $_SESSION and pre_get_posts

I've been hacking all day at a custom post type search/filter system. So far I have this: function kdev_property_query($query) { if(isset($_POST['rooms_n'])) $_SESSION['rooms_n'] = $_POST['rooms_n'];...
9
votes
2answers
2k views

achieving login implementation without using sessions

Wordpress does not use sessions. I always wondered what mechanism does WP use to maintain a user state when user goes from page to page?
0
votes
1answer
720 views

Turning on output buffering in a wordpress plugin

My wordpress plugin uses sessions for handling various things, and on the production site I'm testing it on output buffering is not on by default so I'm getting a lot of messages such as these: ...
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 ...
0
votes
1answer
247 views

Run query_posts if SESSION is empty?

I am having trouble running query_posts when my page loads for the first time, i.e Session is empty. When the page loads for the first time and the SESSION is empty, the following code runs: <...
2
votes
1answer
713 views

2 different post->IDs for single page load only in Firefox

I am saving the post->ID in a session array to keep a history of the accessed pages for a specific custom post type. This code was added to that specific custom post type's template, so that the ...
0
votes
1answer
2k views

Can't Access Sessions or Variables through pages

So I'm trying to use a session to move a variable through pages. For some reason I literally cannot access anything from index.php to archive. I declare my session at the very top of my header.php ...
0
votes
1answer
281 views

Replacing a placeholder term with a session variable value in taxonomy filter

I have in my themes some code which will set a session variable. For the sake of example, it's a geolocation routine which will set to either USA, UK or ROW, resulting in: $_SESSION['region'] = 'USA';...
1
vote
1answer
3k views

wp_mail is sending two emails when used after retrieving session data

I'm using the wp_mail function to send emails in WordPress. Before I run the function, I retrieve a heap of data from a session and some others from a form that was just submitted. For example: $...