Title: Session in wordpress
Last modified: December 3, 2020

---

# Session in wordpress

 *  [trytofinderror](https://wordpress.org/support/users/trytofinderror/)
 * (@trytofinderror)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/session-in-wordpress/)
 * Hello!
 * We have a small internal corporate interface in which we share articles between
   writers.
 * After posting articles in this interface, the user submits a POST with title 
   and content to our wordpress site to the page /wp-admin/post-new.php.
    Each time
   a POST is sent, the user has to log in again. Please help me! How to fix a user
   session in wordpress for a long time?
 * I already tried to change php.ini variables and “auth_cookie_expiration” wordpress
   filter.
 * Thank you!

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/session-in-wordpress/#post-13742309)
 * Are you submitting a valid nonce value with the POSTed data? You’ll need to dig
   into the post edit screen’s source code to learn how to create a valid nonce.
   You might consider instead adding posts through the REST API. User’s still need
   to be logged in and you still need a nonce, but how to get a valid value is more
   clearly defined.
    [https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/](https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/)

Viewing 1 replies (of 1 total)

The topic ‘Session in wordpress’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/session-in-wordpress/#post-13742309)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
