createCrossDomain
- Home
- Accounts & Sessions
- Session
- createCrossDomain
createCrossDomain
Creates a user session and generates a redirect url to handle core_u and core_x cookies.
Parameters
Name | Description |
node_id optional | Node ID |
domain optional | Domain |
user_id optional | User ID |
username optional | Username |
email optional | |
callback_url required | Callback URL |
ip optional | IP Address |
expires optional | Expiration (Seconds) |
off_network optional | Off Network |
Request Syntax
https://services.onesite.com/1/session/createCrossDomain.json?node_id=188234&user_id=229928503&ip=127.0.0.1&agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.2) Gecko/20100101 Firefox/10.0.2&callback_url=https://www.example.com&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 |
{ "code":100, "message":"Session generated.", "content":{ "redirect_url":"http://onesitedemo.com/tools/token.one?token=P3VzZXI9b25lc2l0ZWRlbW8sb25lc2l0ZWRlbW8uY29tJmNvcmVfdT0mZXhwPTE1NDg5NzMzMTgwMDAmb3JpZ2luX3VybD1odHRwOi8vd3d3LmV4YW1wbGUuY29tJmg9YjA2MTYyYWYyMzk5NmZiMTA0MTU3ZGRiOTc5OGQyMTdjNDc2YmFmMiZvZmZuZXQ9b2ZmbmV0" } } |
Service Information
Service | session |
Method | createCrossDomain |
Type | REST |
Response Types | JSON, XML |