Questions tagged [session]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
279 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: $...
15
votes
3answers
58k views

How to use my own custom session value in Wordpress?

How can i use my own (custom) session value in Wordpress? For example: $_SESSION['myname']="4lvin" I've already inserted session_start() at all page i need as following. <?php session_start(); $...