Microsoft_WindowsAzure
[ class tree: Microsoft_WindowsAzure ] [ index: Microsoft_WindowsAzure ] [ all elements ]

Class: Microsoft_WindowsAzure_SessionHandler

Source Location: /WindowsAzure/SessionHandler.php

Class Overview




Author(s):

Copyright:

  • Copyright (c) 2009 - 2011, RealDolmen (http://www.realdolmen.com)

Variables

Constants

Methods



Class Details

[line 48]


Tags:

copyright:  Copyright (c) 2009 - 2011, RealDolmen (http://www.realdolmen.com)
license:  http://phpazure.codeplex.com/license


[ Top ]


Class Variables

$_sessionContainer =

[line 81]

Session container name



Tags:

access:  protected

Type:   string


[ Top ]

$_sessionContainerPartition =

[line 88]

Session container partition



Tags:

access:  protected

Type:   string


[ Top ]

$_storage =

[line 67]

Storage back-end



Tags:

access:  protected



[ Top ]

$_storageType =

[line 74]

Storage backend type



Tags:

access:  protected

Type:   string


[ Top ]



Class Methods


method close [line 161]

bool close( )

Close the session store



Tags:

access:  public


[ Top ]

method destroy [line 256]

boolean destroy( int $id)

Destroy a specific session



Tags:

access:  public


Parameters:

int   $id   Session Id

[ Top ]

method gc [line 304]

boolean gc( int $lifeTime)

Garbage collector



Tags:

see:  session.gc_probability 1
see:  session.gc_maxlifetime 1440
see:  session.gc_divisor 100
access:  public


Parameters:

int   $lifeTime   Session maximal lifetime

[ Top ]

constructor __construct [line 97]

Microsoft_WindowsAzure_SessionHandler __construct( Microsoft_WindowsAzure_Storage $storage, [string $sessionContainer = 'phpsessions'], [string $sessionContainerPartition = 'sessions'])

Creates a new Microsoft_WindowsAzure_SessionHandler instance



Tags:

access:  public


Parameters:

Microsoft_WindowsAzure_Storage_Table|Microsoft_WindowsAzure_Storage_Blob   $storage   Storage back-end, can be table storage and blob storage
string   $sessionContainer   Session container name
string   $sessionContainerPartition   Session container partition

[ Top ]

method open [line 143]

bool open( )

Open the session store



Tags:

access:  public


[ Top ]

method read [line 172]

string read( int $id)

Read a specific session



Tags:

access:  public


Parameters:

int   $id   Session Id

[ Top ]

method register [line 127]

boolean register( )

Registers the current session handler as PHP's session handler



Tags:

access:  public


[ Top ]

method write [line 214]

void write( int $id, string $serializedData)

Write a specific session



Tags:

throws:  Exception
access:  public


Parameters:

int   $id   Session Id
string   $serializedData   Serialized PHP object

[ Top ]


Class Constants

MAX_TS_PROPERTY_SIZE =  65536

[line 56]

Maximal property size in table storage.



Tags:


[ Top ]

STORAGE_TYPE_BLOB =  'blob'

[line 60]


[ Top ]

STORAGE_TYPE_TABLE =  'table'

[line 59]

Storage backend type


[ Top ]



Documentation generated on Wed, 18 May 2011 12:06:49 +0200 by phpDocumentor 1.4.3