[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/includes/ -> session.inc (summary)

(no description)

File Size: 209 lines (8 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 10 functions

  sess_open()
  sess_close()
  sess_read()
  sess_write()
  sess_regenerate()
  sess_count()
  sess_destroy_sid()
  sess_destroy_uid()
  sess_gc()
  session_save_session()

Functions
Functions that are not part of a class:

sess_open($save_path, $session_name)   X-Ref


sess_close()   X-Ref
No description

sess_read($key)   X-Ref
Reads an entire session from the database (internal use only).

Also initializes the $user object for the user associated with the session.
This function is registered with session_set_save_handler() to support
database-backed sessions. It is called on every page load when PHP sets
up the $_SESSION superglobal.

This function is an internal function and must not be called directly.
Doing so may result in logging out the current user, corrupting session data
or other unexpected behavior. Session data must always be accessed via the
$_SESSION superglobal.

param: $key
return:

sess_write($key, $value)   X-Ref
Writes an entire session to the database (internal use only).

This function is registered with session_set_save_handler() to support
database-backed sessions.

This function is an internal function and must not be called directly.
Doing so may result in corrupted session data or other unexpected behavior.
Session data must always be accessed via the $_SESSION superglobal.

param: $key
param: $value
return:

sess_regenerate()   X-Ref
Called when an anonymous user becomes authenticated or vice-versa.


sess_count($timestamp = 0, $anonymous = true)   X-Ref
Counts how many users have sessions. Can count either anonymous sessions or authenticated sessions.

param: int $timestamp
param: boolean $anonymous
return: int

sess_destroy_sid($sid)   X-Ref
Called by PHP session handling with the PHP session ID to end a user's session.

param: string $sid

sess_destroy_uid($uid)   X-Ref
End a specific user's session

param: string $uid

sess_gc($lifetime)   X-Ref
No description

session_save_session($status = NULL)   X-Ref
Determine whether to save session data of the current request.

This function allows the caller to temporarily disable writing of session data,
should the request end while performing potentially dangerous operations, such as
manipulating the global $user object.  See http://drupal.org/node/218104 for usage

param: $status
return:



Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7