★ wanayoo — archive 1999 http://www.php.net/manual/function.session-set-cookie-params.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Sessions
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageHungarian version of this page
Sessions
* session_start
* session_destroy
* session_name
* session_module_name
* session_save_path
* session_id
* session_register
* session_unregister
* session_unset
* session_is_registered
* session_get_cookie_params
* session_set_cookie_params
* session_decode
* session_encode
Manual: session_set_cookie_params
View the source code for this pageSearch the site



Previous page
 session_get_cookie_params
 Updated
Sat, 12 Aug 2000
session_decode 
Next page


session_set_cookie_params

(PHP4 >= 4.0b4)

session_set_cookie_params --  Set the session cookie parameters

Description

void session_set_cookie_params (int lifetime [, string path [, string domain]])

Set cookie parameters defined in the php.ini file. The effect of this function only lasts for the duration of the script.


User Contributed Notes: session_set_cookie_params


j a s o n p 0 1 9@yahoo.com
13-Jul-2000 01:33
Ummm...can we use this to make a session cookie last greater than the lifetime of the browser? On lower-security sites, you may want someone to log in and stay logged in forever until they log out manually.

Thanks!



principe@mail.pt
31-Jul-2000 07:06
I'm newby... can someone give an exemple how i can register the var $login for exemple and how can get it later?


 About Notes


Previous page
 session_get_cookie_params
 Updated
Sat, 12 Aug 2000
session_decode 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.