Posted by DC on 01/19/06 19:42
--when i set session.cache_limiter = private i get this
Set-Cookie: PHPSESSID=61fdf683fef689d5371a1c01fd46e678; path=/; secure
Expires: Thu, 19 Nov 1981 08:52:00 GMT
No idea where it's pulling that date from. (Clearly already expired)
--when i set session.cache_limiter = private_no_expire i get this
Set-Cookie: PHPSESSID=61fdf683fef689d5371a1c01fd46e678; path=/; secure
(no Expires line)
But my session ID still changes every time i refresh the page.
What do I have set wrong???
php.ini
[Session]
; Handler used to store/retrieve data.
session.save_handler = files
session.save_path = /tmp
session.cookie_secure = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
;session.serialize_handler = php
session.serialize_handler = wddx
session.gc_probability = 1
session.gc_divisor = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 0
session.referer_check =
session.entropy_length = 16
session.entropy_file = /dev/random
;session.cache_limiter = nocache
session.cache_limiter = private_no_expire
session.cache_expire = 180
session.use_trans_sid = 1
<?php
session_start();
echo '<pre>';
var_dump($_SESSION);
//$_SESSION['test'] = 1;
$_SESSION['test']++;
var_dump($_SESSION);
echo("SID: " . SID . "\n");
echo("session_id: " . session_id() . "\n");
echo '<pre>';
//session_unset();
//session_destroy();
?>
Navigation:
[Reply to this message]
|