# There is no valid session

**URL:** <https://community.dreamfactory.com/t/there-is-no-valid-session/1676>\
**Category:** REST API\
**Created:** [October 28, 2015, 2:47pm UTC](https://community.dreamfactory.com/t/there-is-no-valid-session/1676 "2015-10-28T14:47:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_Tiwari](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@Abhishek\_Tiwari](https://community.dreamfactory.com/u/Abhishek_Tiwari)\
**Post date:** [October 27, 2015, 11:27am UTC](https://community.dreamfactory.com/t/there-is-no-valid-session/1676/1 "2015-10-27T11:27:15Z")

</div>

I m passing the headers _x-dreamfactory-application-name_ and _x-dreamfactory-session-token_  
to other API calls but it returns---- There is no valid session ?

---

<div class="post-metadata">

**Author:** ![jeffreystables](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jeffreystables/32/173_2.png) [@jeffreystables](https://community.dreamfactory.com/u/jeffreystables)\
**Post date:** [October 28, 2015, 2:59pm UTC](https://community.dreamfactory.com/t/there-is-no-valid-session/1676/2 "2015-10-28T14:59:25Z")

</div>

Be sure you’re passing `session_token` and not `session_id`, and also that you do not include the quotation marks around the `session_token` value returned from `POST /user/session`, e.g.,

**Request**

```
POST /user/session { "email": "user@domain.com", "password": "password" }

```

**Response**

```auto
{
  "session_token":"blahblah",
  "session_id":"yaddayadda",
  "id":47,
  "name":"User Name",
  "first_name":"User",
  "last_name":"Name",
  "email":"user@domain.com",
  "is_sys_admin":false,
  "last_login_date":"2015-10-22 11:50:27",
  "host":"console"
}

```

In this case you would provide the following value in subsequent calls:

```
X-DreamFactory-Session-Token: blahblah

```

If you confirm this and still receive this error, please post your full request and response.

---

<div class="post-metadata">

**Author:** ![James](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@James](https://community.dreamfactory.com/u/James)\
**Post date:** [January 27, 2016, 10:16pm UTC](https://community.dreamfactory.com/t/there-is-no-valid-session/1676/3 "2016-01-27T22:16:39Z")

</div>

I have the same issue: "There is no valid session"  
my system:  
Database Version: 1.9.0  
DreamFactory Services Platform Version: 1.9.4  
Admin Application Version: 1.0.12

POST /user/session { “email”: "user@domain.com", “password”: “password” }  
RESPONSE with NO session\_token:  
{  
“id”: 6,  
“display\_name”: “V1JamesAdmin”,  
“first\_name”: “James”,  
“last\_name”: “Kim”,  
“email”: "jameski@turneracceptance.com",  
“is\_sys\_admin”: true,  
“last\_login\_date”: “2016-01-27 14:22:45”,  
“dsp\_name”: “ip-172-31-15-206”,  
“ticket”: “3JQRuXuRrA3-Gk0TKqHxsdHxwgagLaNKrhrg8riOKP8,”,  
“ticket\_expiry”: 1453933701,  
“session\_id”: “0mvr0pqnliat264rogqluio9m1”,  
“app\_groups”: [],  
“no\_group\_apps”: [  
{  
“id”: 1,  
“api\_name”: “todojquery”,  
“name”: “Todo List jQuery”,  
“description”: “A simple jQuery application showing how to create, update, and delete database records on the DreamFactory Services Platform.”,  
“is\_url\_external”: false,  
“launch\_url”: “[https://webservices-dev.turneracceptance.com/files/applications/todojquery/index.html](https://webservices-dev.turneracceptance.com/files/applications/todojquery/index.html)”,  
“requires\_fullscreen”: false,  
“allow\_fullscreen\_toggle”: true,  
“toggle\_location”: “top”,  
“is\_default”: false  
},  
{  
“id”: 2,  
“api\_name”: “todoangular”,  
“name”: “Todo List AngularJS”,  
“description”: “A simple AngularJS application showing how to create, update, and delete database records on the DreamFactory Services Platform.”,  
“is\_url\_external”: false,  
“launch\_url”: “[https://webservices-dev.turneracceptance.com/files/applications/todoangular/index.html](https://webservices-dev.turneracceptance.com/files/applications/todoangular/index.html)”,  
“requires\_fullscreen”: false,  
“allow\_fullscreen\_toggle”: true,  
“toggle\_location”: “top”,  
“is\_default”: false  
},  
{  
“id”: 3,  
“api\_name”: “todosencha”,  
“name”: “Todo List Sencha”,  
“description”: “A simple Sencha application showing how to create, update, and delete database records on the DreamFactory Services Platform.”,  
“is\_url\_external”: false,  
“launch\_url”: “[https://webservices-dev.turneracceptance.com/files/applications/todosencha/index.html](https://webservices-dev.turneracceptance.com/files/applications/todosencha/index.html)”,  
“requires\_fullscreen”: false,  
“allow\_fullscreen\_toggle”: true,  
“toggle\_location”: “top”,  
“is\_default”: false  
},  
{  
“id”: 4,  
“api\_name”: “calendar”,  
“name”: “Calendar”,  
“description”: “A sample application showing how to perform CRUD operations on your DreamFactory Services Platform (DSP).”,  
“is\_url\_external”: false,  
“launch\_url”: “[https://webservices-dev.turneracceptance.com/files/applications/calendar/index.html](https://webservices-dev.turneracceptance.com/files/applications/calendar/index.html)”,  
“requires\_fullscreen”: false,  
“allow\_fullscreen\_toggle”: true,  
“toggle\_location”: “top”,  
“is\_default”: false  
},  
{  
“id”: 5,  
“api\_name”: “tac\_api”,  
“name”: “tac\_api”,  
“description”: “”,  
“is\_url\_external”: false,  
“launch\_url”: “[https://webservices-dev.turneracceptance.com/files/applications/tac\_api/index.html](https://webservices-dev.turneracceptance.com/files/applications/tac_api/index.html)”,  
“requires\_fullscreen”: false,  
“allow\_fullscreen\_toggle”: true,  
“toggle\_location”: “top”,  
“is\_default”: true  
},  
{  
“id”: 6,  
“api\_name”: “cl\_api”,  
“name”: “Cloud Lending”,  
“description”: “”,  
“is\_url\_external”: false,  
“launch\_url”: “[https://webservices-dev.turneracceptance.com/files/applications/cl\_api/index.html](https://webservices-dev.turneracceptance.com/files/applications/cl_api/index.html)”,  
“requires\_fullscreen”: false,  
“allow\_fullscreen\_toggle”: true,  
“toggle\_location”: “top”,  
“is\_default”: false  
},  
{  
“id”: 7,  
“api\_name”: “add”,  
“name”: “Address Book”,  
“description”: “A sample ExtJS/Sencha application for the DreamFactory Services Platform that runs on desktop and mobile.”,  
“is\_url\_external”: false,  
“launch\_url”: “[https://webservices-dev.turneracceptance.com/files/applications/add/index.html](https://webservices-dev.turneracceptance.com/files/applications/add/index.html)”,  
“requires\_fullscreen”: false,  
“allow\_fullscreen\_toggle”: true,  
“toggle\_location”: “top”,  
“is\_default”: false  
}  
]  
}
