Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

Better library name #1

Open
malukenho opened this issue Jan 11, 2017 · 7 comments
Open

Better library name #1

malukenho opened this issue Jan 11, 2017 · 7 comments

Comments

@malukenho
Copy link
Member

Any suggestions?

@lcobucci
Copy link
Member

psr7-sessions/encoder seems to be enough...

@Ocramius
Copy link
Member

What is the purpose? As in: where would this be used?

@malukenho
Copy link
Member Author

@Ocramius did you read the README?

@Ocramius
Copy link
Member

Yes, but who is the target audience, and what is the usage context?

@malukenho
Copy link
Member Author

@Ocramius there are no built-in way to encode/decode a php session without change the global state of $_SESSION variable. When it's dealing with session handlers implementation, may ya can depare with the necessity of encode/decode the session data or whatever. The audience for sure is small. But I still need it for continue the work on session handler using JWT. I just wanted to split it up as I saw in the php manual for example, people trying to implement their on enc/dec for the native php session.

@Ocramius
Copy link
Member

That doesn't answer the question. I am asking (as a consumer of this library):

  • what am I building?
  • what do I need?
  • why do I need it?
  • how would I use it (example code needed)?

@necromant2005
Copy link

It makes no sense to support and developing this library, because there's php.ini already has option to change default session storage (if it's required):
session.serialize_handler = php_serialize

Also in case we're talking about PSR7, session must be JWT stored in cookies. So we will be forced to use custom session save handler (if the app requires fallback comparability), so all those cases we control storing and loading session processes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants