Title: Session start error &#8211; Routes.php
Last modified: August 31, 2020

---

# Session start error – Routes.php

 *  Resolved [bennettah](https://wordpress.org/support/users/bennettah/)
 * (@bennettah)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/session-start-error-routes-php/)
 *     ```
       if(empty(session_id())){
           session_start();
       }else {
           session_start(session_id());
       }
       ```
   
 * In version 2.3.0 this line was updated: session_start(session_id());
 * PHP throws this warning error:
    “Warning: session_start() expects parameter 1
   to be array, string given …”
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsession-start-error-routes-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Nicu Micle](https://wordpress.org/support/users/nicu_m/)
 * (@nicu_m)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/session-start-error-routes-php/#post-13346523)
 * Hello [@bennettah](https://wordpress.org/support/users/bennettah/),
 * Thank you for the update.
 * I’ve released version `2.3.1` with the fix.
 * Best regards,
    Nicu.

Viewing 1 replies (of 1 total)

The topic ‘Session start error – Routes.php’ is closed to new replies.

 * ![](https://ps.w.org/simple-jwt-login/assets/icon-256x256.png?rev=2106097)
 * [Simple JWT Login – Allows you to use JWT on REST endpoints.](https://wordpress.org/plugins/simple-jwt-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-jwt-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-jwt-login/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-jwt-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-jwt-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-jwt-login/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nicu Micle](https://wordpress.org/support/users/nicu_m/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/session-start-error-routes-php/#post-13346523)
 * Status: resolved