Title: Session WordPress and login solution
Last modified: September 1, 2016

---

# Session WordPress and login solution

 *  [Vincenzino](https://wordpress.org/support/users/vincenzino/)
 * (@vincenzino)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/session-wordpress/)
 * Hi guys,
    I put a label in menu called ‘Private’ that allow to insert name and
   password. If user data is correct the user will redirect in a page. For each 
   user exist one page. Now the problem is this: If a user have a page with url:‘
   example.com/heyjude’ and somebody go to ‘example.com/heyjude’ it is visible to
   all… Fist all I thought to SESSION, but WordPress don’t accept SESSION so I read
   this [http://silvermapleweb.com/using-the-php-session-in-wordpress/](http://silvermapleweb.com/using-the-php-session-in-wordpress/).
   When I used session with php only i used to do: 1- session_start(); 2- $_SESSION[‘
   username’] = $username; then in a page ‘receive.php’ 1-session_start(); 2-$username
   = $_SESSION[‘username’]; But in WordPress how i can do it? Pages is dinamic and
   don’t exist a file .php for each page.
 * Alternatively, there are other way for my problem?
 * Sorry for bad english, thanks.

The topic ‘Session WordPress and login solution’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Vincenzino](https://wordpress.org/support/users/vincenzino/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/session-wordpress/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
