PHP:Sessionara

From xbe wiki

Jump to: navigation, search

Contents

[edit] What is Sessionara?

From the doc: "Before this release, I described Sessionara as a class for "Session management with MySQL". But actually it's more, it's a "session based data environment with MySQL". This class enables you to open a virtual session (identified by an unique session ID), then set and access variables in this environment. If you pass the session ID within multiple pages (via GET/POST parameters), then you get an easy and powerful way to pass values between various pages. Taking this, the possibilities are only limited by your imagination ;-)"

So it's PHP class simplifying a lot of developer tasks involving the ability to pass data between multiple accesses (or websites in a specific use).

[edit] 3. November 2004: Version 1.7-r1 is out!

Oh guys, it's so frustrating. I forget to change a variable name and the release is busted. A little typo disabled the class to store normal variables to the session. New version 1.7-r1 fixes that and also introduces flexible table field names for the session table.

The Sessionara Documentation also got updated a little and you can find the new release files below.. ;-) For the real basic questions, check out the old SessionaraFAQ. Any other question can be asked via E-Mail, you'll find my address in any source file.

[edit] Methodical changes

All this hassles with this kind of bugs really calls for a change on the release cycles. Which means that in the future, I'll do it with Sessionara as one does it with every little project - using several release states. So all new features will be implemented on a _beta_ version, and there will always be a _stable_ marked version which is fully tested. The disadvantage until today was, that I incorporated every single change directly into the actual release, that's bad. At the beginning I thought that such things would not be necessary for such a tiny thing like Sessionara, but it's better to do it now ;-)

[edit] Future plans

I never thought that Sessionara would grow that much, and I think there's not much more features that make sense to integrate. _But_, I still have one idea that I want to realize. That will come with Sessionara 2.0 (the next big and maybe last release) and includes the feature to "bind" a class at Sessionara where one can define event-driven functions. The plan is that you can write your own class with some pre-defined function names and then "bind" this class at Sessionara. Then, i.e. when a user logs in, Sessionara calls the onLogin function of the binded class and so on. There will be several events that one can catch. This new feature will make the class extremly flexible and customizable. I'm also searching a way for opening Sessionara to several db abstraction layers.

This stuff will be developed with the next release, which will be Version 2.0-rc1 as a _beta_ version based on 1.7-r1.

[edit] Release & Downloads

Latest release is 1.7-r1, released 03/11/04.

All comments are appreciated, so don't hesitate to drop me a line. You can find my contact address in the source file.

With the 1.5 release, there aren't any example files within the release download anymore! I'll try to put some more in-depth examples on this page. A short example is in the class source, and enough stuff in the docs.

Folks that only want the source code can get it easy by visiting SessionaraCode.

[edit] Stable version

[edit] Older releases

Personal tools