910823 - how to implement sessions in web services?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

hamidi2
New php-forum User
New php-forum User
Posts: 1
Joined: Tue Nov 13, 2012 8:15 am

910823 - how to implement sessions in web services?

Postby hamidi2 » Tue Nov 13, 2012 8:16 am

hi
we've two kinds of clients, web client and an application which works as a client.
now our application simulates web requests by calling index.php as the web client does. we want to change it to calling web services via nusoap. but there's a problem. web services are session-less. for example, a web service is called to authenticate. the second service when called has no sense about the authentication and it's completely a separate call. someone told me that i may put something eg. a hash code in http headers to include the data provided via authentication so that the next web services read the data from header and realize the call has been for what session. this way something like session simulation occurs.
i'm not so familiar with 'http headers'. i don't know how can i do that. in the whole, i like to know what may be the best solution and whether nusoap keeps something internally like sessions so that i may read the in web services?
what's your suggestion?
thx

Return to “PHP coding => General”

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests