Hi,
I just have a couple of questions regarding sessions. I read the php
manual but I just wasn't clear on a couple of things.
I am using the following to control my sessions:
...
ini_set('sessio n.save_path',"./sessions/sess/");
ini_set("sessio n.gc_maxlifetim e","300");
ini_set('sessio n.gc_probabilit y',1);
ini_set('sessio n.gc_divisor',1 );
...
I want the garbage collector to kill a users session the second a user
closes their browser (or as quick as possible). Am I doing correct
above ^ to achieve this?
Also, are there any security issues with having the 'session.save_p ath'
set to a directory like above or should I perhaps have it set to
somewhere like "../../sessions/sess/"?
Thanks in advance!
I just have a couple of questions regarding sessions. I read the php
manual but I just wasn't clear on a couple of things.
I am using the following to control my sessions:
...
ini_set('sessio n.save_path',"./sessions/sess/");
ini_set("sessio n.gc_maxlifetim e","300");
ini_set('sessio n.gc_probabilit y',1);
ini_set('sessio n.gc_divisor',1 );
...
I want the garbage collector to kill a users session the second a user
closes their browser (or as quick as possible). Am I doing correct
above ^ to achieve this?
Also, are there any security issues with having the 'session.save_p ath'
set to a directory like above or should I perhaps have it set to
somewhere like "../../sessions/sess/"?
Thanks in advance!
Comment