Re: database-based sessions for 3rd party php app [message #179022 is a reply to message #179018] |
Wed, 05 September 2012 12:45 |
The Natural Philosoph
Messages: 993 Registered: September 2010
Karma:
|
Senior Member |
|
|
Axel wrote:
> Am Mittwoch, 5. September 2012 13:37:37 UTC+2 schrieb The Natural Philosopher:
>>> Is there a good, proven and solid way to move the session management to the database _without_ modyfying the app's code?
>> How could there be?
>>
>
> Well. The usual way seems to be to call session_set_save_handler(...).
For you maybe.
I simply took one look at sessions and rolled my own interface to mysql
and cookies..
>
> My hope was there was some kind of "hook" I could use to inject that before the app's PHP stuff gets executed, and to configure this in the php.ini or so.
>
> That's how this could be. But isn't, I get it.
I don't think so. the session_set_handler class is too complex really to
be expressed in an config file alone.
--
Ineptocracy
(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.
|
|
|