Session Handler classes PHP script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name:
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: PHP
  • Price:Other Free / Open So
  • Company: Scott Christensen (View more)

Session Handler classes script description:




Publisher review:
Session Handler classes implements a session but does not use MySQL as its storage mechanism like other session handling classes do. This class implements a session but does not use MySQL as its storage mechanism like other session handling classes do.

Instead it uses a directory structure where the session is identified as a directory and keys are files inside of that directory. Each file contains the value assoiciated with the key identified by the file name. This session handler requires the use of non-persistent cookies which means it will create cookies on the user's machine, but the cookies will be destroyed when the user closes their browser.

This could be an issue because there are those people who have cookies turned off. If you use this class, you may want to detect whether the user has cookies enabled or disabled first.

Then use the getURLSessionString function and place what is returned into your URL query string if cookies are turned off. I have added a global variable outside of this class that creates a new instance of the session class. This was an attempt to make the session handling "hidden". Instead of creating an instance of this class, you can use the global $SESSION variable. Note that this class is not necessary if you are using PHP4 because there is already session handling incorporated into PHP4.

Usage of this class is pretty simple. Since the global $SESSION object is created for you, there is no reason to create another instance of the object. Use $SESSION->register to register a key/value pair with the session handler for the correct session.

Use $SESSION->retrieve to retrieve a value from the session for a given key. If you need to get rid of everything in the session, call $SESSION->destroy which deletes the existing session and creates a new one.

If you want to only delete a key from the existing session, call the $SESSION->deleteKey function.
Session Handler classes is a PHP script for PHP Classes scripts design by Scott Christensen. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

The new Firefox 37 comes with improved HTTP / 2 and superior HMTL5 compatibility with YouTube

The new Firefox 37 comes with improved HTTP / 2 and superior HMTL5 compatibility with YouTube

The popular browser Firefox reached version 37, bringing a series of news but not as significant as other versions.

Posted on: 03 Apr 2015 11:11 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Google Chrome version 42 comes with implementation of interesting options for software developers who want to turn their websites into complex Web applications: Push notification system which is permanently active.

Posted on: 17 Mar 2015 07:57 by A. Brown

Gamers, Microsoft presents the advantages of DirectX 12 and 11.3 platforms used by new games for Windows 10

Gamers, Microsoft presents the advantages  of DirectX 12 and 11.3 platforms used by new games for Windows 10

The Windows 10 preview event brought also to the attention of gamers a demonstration of the advantages of the new DirectX 12 API by Microsoft, which announced several technologies providing integration with Xbox One game consoles.

Posted on: 27 Jan 2015 09:15 by A. Brown

Android devices now have access to Google Chrome 40

Android devices now have access to Google Chrome 40

Finally was officially released version 40 of Chrome browser for Android devices, iOS and Windows PCs, coming up with an interesting range of bug fixes and optimizations.

Posted on: 23 Jan 2015 13:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 0.0 out of 5
Based on 0 ratings. 0 user reviews.

  • Currently 0.00 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5