I'm working on a client library to interface with my company's api, and we generate a user ticket when the user logs in using the api.
Obviously I don't want to send the user ticket to the client for resubmission on subsequent requests - is it (relatively) safe for me to cache this value in $_SESSION for later calls?
$_SESSIONis build around the session cookie (by default) and that's what you should protect first. Tell us a bit more on how you would approach this, as is there isn't enough info for a good answer.