php session_cache_limiter() function


  Translation results:

session

English [ˈseʃn] US [ˈsɛʃən]

n. Meeting, meeting; (court) session; session, semester; (carrying out an activity Continuous) a period of time

cache

英[kæʃ] 美[kæʃ]

n. Hiding place; hiding place; hidden treasure ;<Computer>Quick buffer storage area

vt.storage

vi.hide

php session_cache_limiter() functionsyntax

Function:Read/set cache limiter

Syntax: string session_cache_limiter ([string $cache_limiter])

Parameters:

Parameter Description
cache_limiter If specified The cache_limiter parameter will use the specified value as the cache limiter value.

#Description: Returns the name of the currently used cache limiter.

php session_cache_limiter() functionexample

<?php
session_cache_limiter('private');
$cache_limiter = session_cache_limiter();
echo "The cache limiter is now set to $cache_limiter";
?>

Run instance»

Click the "Run instance" button to view the online instance

Output:

The cache limiter is now set to private


<?php
session_cache_limiter('public');
$cache_limiter = session_cache_limiter();
echo "The cache limiter is now set to ".$cache_limiter;
?>

Run Instance»

Click the "Run Instance" button to view the online instance

Output:

The cache limiter is now set to public

Home

Videos

Q&A