Download the PHP package webiik/session without Composer

On this page you can find all versions of the php package webiik/session. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package session

Session

The Session provides safe way to work with sessions.

Installation

Example

NOTICE: If you can, don't forget to call session_write_close() before time intensive operations. Otherwise users of your app can experience serious lags.

Configuration

setDomain

setDomain() sets the (sub)domain that the session cookie is available to.

setUri

setUri() sets the path on the server in which the session cookie will be available on.

setSecure

setSecure() indicates that the session cookie should only be transmitted over a secure HTTPS connection from the client. The default value is FALSE.

setHttpOnly

setHttpOnly() indicates that the session cookie should only be accessible through the HTTP protocol. The default value is FALSE.

setSessionName

setSessionName() sets the name of the session which is used as cookie name. The default value is PHPSESSID.

setSessionDir

setSessionDir() defines the argument which is passed to the save handler. If you choose the default files handler, this is the path where the files are created.

setSessionGcProbability

setSessionGcProbability() in conjunction with setSessionGcDivisor() is used to manage probability that the gc (garbage collection) routine is started. The default value is 1.

setSessionGcDivisor

setSessionGcDivisor() coupled with setSessionGcProbability() defines the probability that the gc (garbage collection) process is started on every session initialization. The probability is calculated by using GsProbability/GcDivisor, e.g. 1/100 means there is a 1% chance that the GC process starts on each request. The default value of GcDivisor is 100.

setSessionGcLifetime

setSessionGcLifetime() specifies the number of seconds after which data will be seen as 'garbage' and potentially cleaned up. Garbage collection may occur during session start (depending on setSessionGcProbability() and setSessionGcDivisor()).

Note: If different scripts have different values of gcLifetime but share the same place for storing the session data then the script with the minimum value will be cleaning the data. In this case, use this directive together with setSessionDir().

Adding

setToSession

setToSession() sets $value to the session under given $key.

addToSession

addToSession() ads $value to the session under given $key.

sessionStart

sessionStart() starts the session. Use it when you need to work directly with $_SESSION global.

sessionRegenerateId

sessionRegenerateId() replaces the current session id with a new one, and keeps the current session information. Also the original session is kept.

Check

isInSession

isInSession() determines if $key is set in session and if its value is not NULL.

Getting

getFromSession

getFromSession() gets value from the session by $key.

getAllFromSession

getAllFromSession() returns all values stored in the session.

Deletion

delFromSession

delFromSession() removes value from the session by $key.

dellAllFromSession

dellAllFromSession() removes all values from the session.

sessionDestroy

sessionDestroy() removes all values from the session and un-sets the session.

Resources


All versions of session with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package webiik/session contains the following files

Loading the files please wait ....