Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Can I use the session DB driver for my API
  • I have an API that leverages the REST controller. How I have it set now is basically I generate a sha256 hash and use that as a session key which is sent with each request. I was wondering if anyone has tried to use the session class to generate keys for API requests.
  • You want the session class to generate keys? Or your want per-API-key session storage?
  • Actually both, I use my own hashing class now but willing to dump it.
  • For generating keys, FuelPHP uses PHPSecLib, which is included in the core/vendor directory. Check the crypt class or the Auth package to see how it is used. API session storage is not possible at the moment, but sounds like an interesting addition. Could you add this as a feature request on http://github.com/fuel/core/issues, and include the use-case?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion