Easy Property Listings 3.5.14 Code Reference
  • Package
  • Class
  • Tree
  • Todo
  • Hook Reference

Packages

  • EPL
    • Admin
      • Actions
      • Classes
        • ContactsTable
        • ReportsGraph
        • Welcome
      • Contacts
      • ContactsActions
      • ContactsFunctions
      • Elements
      • Functions
      • Help
      • HelpSingle
      • Menus
      • MenusAddons
      • MenusExtensions
      • MenusLicenses
      • Plugins
      • Reports
      • ReportsGraphing
      • User
    • Assets
      • ScriptsStyles
      • SVG
    • Classes
      • AuthorLoader
      • AuthorMeta
      • Contact
      • Cron
      • CustomPostType
      • Forms
      • License
      • ListingAdvanced
      • ListingElements
      • MetaboxesCustomFields
      • Pagination
      • PropertyMeta
      • RenderFields
      • RestAPI
      • Search
      • Session
      • Updater
    • Compatibility
      • Extensions
      • Functions
      • Shortcodes
    • Functions
      • Actions
      • ConditionalTags
      • ErrorTracking
      • Formatting
      • Front
      • Global
      • Install
      • Pagination
      • Settings
      • Templates
    • Hooks
      • EnergyCertificate
      • ExternalLinks
      • FloorPlan
      • Map
      • ReadMore
      • WebLink
    • Meta
      • InitCustomFields
      • Meta
    • PostTypes
      • Business
      • Commercial
      • CommercialLand
      • Contact
      • Functions
      • Land
      • Property
      • Rental
      • Rural
    • Shortcode
      • CommercialListingSearch
      • ContactForm
      • Listing
      • ListingAdvanced
      • ListingAuction
      • ListingCategory
      • ListingFeature
      • ListingLocation
      • ListingMetaDoc
      • ListingOpen
      • ListingResults
      • ListingSearch
      • Map
    • Taxonomy
      • BusinessCategories
      • ContactTag
      • Features
      • Location
    • Templates
      • Themes
        • iThemes
        • iThemesBuilder
    • Widget
      • Admin
        • Dashboard
      • Classes
        • Author
        • ContactCapture
        • Gallery
        • Listing
        • Search
      • Functions
  • None
  • WordPress
    • Session

Classes

  • EPL_Session

Class EPL_Session

EPL_Session Class

Package: EPL\Classes\Session
Copyright: Copyright (c) 2020, Merv Barrett
License: GNU Public License
Since: 3.4.15
Located at lib/includes/class-epl-session.php

Methods summary

public
# __construct( )

Get things started

Get things started

Defines our WP_Session constants, includes the necessary libraries and retrieves the WP Session instance

Since

3.4.15
public
# init( )

Setup the WP_Session instance

Setup the WP_Session instance

Since

3.4.15
public string
# get_id( )

Retrieve session ID

Retrieve session ID

Returns

string
Session ID

Since

1.6
public mixed
# get( string $key )

Retrieve a session variable

Retrieve a session variable

Parameters

$key
Session key

Returns

mixed
Session variable

Since

3.4.15
public mixed
# set( string $key, integer|string|array $value )

Set a session variable

Set a session variable

Parameters

$key
Session key
$value
Session variable

Returns

mixed
Session variable

Since

3.4.15
public integer
# set_expiration_variant_time( integer $exp )

Force the cookie expiration variant time to 23 hours

Force the cookie expiration variant time to 23 hours

Parameters

$exp
Default expiration (1 hour)

Returns

integer

Since

3.4.15
public integer
# set_expiration_time( integer $exp )

Force the cookie expiration time to 24 hours

Force the cookie expiration time to 24 hours

Parameters

$exp
Default expiration (1 hour)

Returns

integer
Cookie expiration time

Since

3.4.15
public boolean
# use_php_sessions( )

Starts a new session if one hasn't started yet.

Starts a new session if one hasn't started yet.

Returns

boolean

Checks to see if the server supports PHP sessions or if the EPL_USE_PHP_SESSIONS constant is defined


boolean
$ret True if we are using PHP sessions, false otherwise

Author

Daniel J Griffiths

Since

3.4.15
public boolean
# should_start_session( )

Determines if we should start sessions

Determines if we should start sessions

Returns

boolean

Since

2.5.11
public array
# get_blacklist( )

Retrieve the URI blacklist

Retrieve the URI blacklist

These are the URIs where we never start sessions

Returns

array

Since

2.5.11
public
# maybe_start_session( )

Starts a new session if one hasn't started yet.

Starts a new session if one hasn't started yet.

Easy Property Listings 3.5.14 Code Reference API documentation generated by ApiGen