Re: using sessions
| From: | Chris Lee | Date: | Tue, 05 Dec 2000 04:00:17 +0000 |
| Subject: | Re: using sessions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28680@lists.php.net to get a copy of this message | ||
Ok, here we are, aparently I should read the posts on this forum haha.
php.ini
session.use_cookies = 1 ; whether to use cookies
will disable cookies for sessions.
or something simmilar to that can be added to .htaccess I would like to
know exactly how though.
Chris Lee
Mediawaveonline.com
In article <90hoil$shr$1@toye.p.sourceforge.net>, "Chris Lee"
<lee@mediawaveonline.com> wrote:
> Sessions are only destroyed when the user restarts his browser or with
> the use of session_destroy(). The only way to make this work the way you
> want is to turn on --enable-trans-sid on compiling and to disable the
> users cache like this
>
> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified:
> "
> . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache,
> must-revalidate"); header("Pragma: no-cache");
>
> Now find a way to disable sessions from using cookies, Ive read
> somewhere how todo this, and I can't seem to find it....
>
> now all the sessions will be stored without cookies, they will be added
> to all form's and href's. if the user leaves the site, the session is
> forgoten
>
> Chris Lee Mediawaveonline.com
>
>
>
>
> In article
> <Pine.LNX.4.21.0012042204260.31642-100000@web.pcintelligent.com>, "Ken
> Nagorski" <kenn@pcintelligent.com> wrote:
>
>> Hi,
>>
>> I am using sesion with php 4.0.2pl2. With that said this is where
>> I am at. I have a page that when the user gets there sets a sesion id,
>> whne the user goes to page two I call session_start() and then I can
>> print out the session id no problem, if I go to the logout page which
>> calls session_start(); and then session_destroy() and the back to the
>> first session page we see that the session has indeed been destroyed.
>> If I close the browser the session is gone as well. Now here is my
>> question. I go to yahoo.com hit the back button and the session is
>> still there.
>> how do I remove the session if the user leaves my site?
>>
>> Thank you Ken
>>
>>
>
>