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, RealDolmen (http://www.realdolmen.com)

Variables

Methods



Class Details

[line 51]


Tags:

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


[ Top ]


Class Variables

$_sessionTable =

[line 65]

Session table name



Tags:

access:  protected

Type:   string


[ Top ]

$_sessionTablePartition =

[line 72]

Session table partition



Tags:

access:  protected

Type:   string


[ Top ]

$_tableStorage =

[line 58]

Table storage



Tags:

access:  protected



[ Top ]



Class Methods


constructor __construct [line 81]

Microsoft_WindowsAzure_SessionHandler __construct( Microsoft_WindowsAzure_Storage_Table $tableStorage, [string $sessionTable = 'php-sessions'], [string $sessionTablePartition = 'sessions'])

Creates a new Microsoft_WindowsAzure_SessionHandler instance



Tags:

access:  public


Parameters:

Microsoft_WindowsAzure_Storage_Table   $tableStorage   Table storage
string   $sessionTable   Session table name
string   $sessionTablePartition   Session table partition

[ Top ]

method close [line 128]

bool close( )

Close the session store



Tags:

access:  public


[ Top ]

method destroy [line 186]

boolean destroy( int $id)

Destroy a specific session



Tags:

access:  public


Parameters:

int   $id   Session Id

[ Top ]

method gc [line 215]

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 ]

method open [line 110]

bool open( )

Open the session store



Tags:

access:  public


[ Top ]

method read [line 139]

string read( int $id)

Read a specific session



Tags:

access:  public


Parameters:

int   $id   Session Id

[ Top ]

method register [line 94]

boolean register( )

Registers the current session handler as PHP's session handler



Tags:

access:  public


[ Top ]

method write [line 162]

void write( int $id, string $serializedData)

Write a specific session



Tags:

access:  public


Parameters:

int   $id   Session Id
string   $serializedData   Serialized PHP object

[ Top ]


Documentation generated on Thu, 26 Nov 2009 08:05:17 +0100 by phpDocumentor 1.4.3