| re: can't destroy sessions
"Bob Bedford" <bedford1@YouKnowWhatToDoHerehotmail.com> wrote in
news:417cfc0e$0$28020$5402220f@news.sunrise.ch:
[color=blue]
> I can't modifiy php.ini settings. My provider doesn't allow it ![/color]
none at all? there are many that can normally be set specifically for
your site, by changing them on one of your pages, so it only affects your
site. It will not mess with the php.ini file. an example would be storing
all your session files in one of your own folders, not the host catch-all
(I think that setting is part of it anyway). Its an easy way to check out
if when you shutdown the browser and restart if the original session file
is still there because you have direct access to them. Check out the
manual.
also, when you log out, set your session to array(), not 0. then unset
and destroy it.
your 'private' header is there for IE mainly, include all of these as
well in your session include file - I dont understand them all but
several of the validation samples I checked out use them. so when in
Rome.....
//ensure page does not store in cache to force reloading everytime
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE);
header('Pragma: no-cache');
header("Cache-control: private"); fix for IE6.
cheers |