\LibSession

STNC FW

Copyright (c) 2015

Author(s): Selman TUNÇ www.selmantunc.com selmantunc@gmail.com Session Class - prefix sessions with useful methods

Summary

Methods
Properties
Constants
init()
set()
pull()
get()
id()
display()
destroy()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_sessionStarted
N/A

Properties

$_sessionStarted

$_sessionStarted : boolean

Determine if session has started sesssion'ları başlatır

Type

boolean

Methods

init()

init() 

if session has not started, start sessions eğer session başlamışsa , sessionu başlamasını şart koşar

set()

set(string  $key, string  $value = false) 

Add value to a session session a yeni değer ekler

Parameters

string $key

name the data to save

string $value

the data to save

pull()

pull(string  $key) : string

extract item from session then delete from the session, finally return the item session dan değeri ayıklar ve döndürür ve onu session dan siler

Parameters

string $key

item to extract

Returns

string —

return item

get()

get(string  $key, boolean  $secondkey = false) : string

get item from session session ı verir

Parameters

string $key

item to look for in session

boolean $secondkey

if used then use as a second key

Returns

string —

returns the key

id()

id() : string

Returns

string —

with the session id.

display()

display() : array

return the session array tüm session ları verir

Returns

array —

of session indexes

destroy()

destroy(  $key = '') 

empties and destroys the session session temizle

Parameters

$key