Re: Another question
| From: | Constantin Brinzoi | Date: | Mon, 15 Dec 2003 14:13:46 +0000 |
| Subject: | Re: Another question | ||
| References: | 1 2 3 4 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-32049@lists.php.net to get a copy of this message | ||
I destroy the session with:
session_destroy()
The file is deleted from the /tmp directory (which is good) but after
that I want to go on another page (public space) and get rid of
PHP_AUTH_USER and PHP_AUTH_PW.
How can I do it?
On Mon, 2003-12-15 at 16:10, Muhammed Mamedov wrote:
> Could you provide the code you use for destroying your session?
>
> Because if you destroy it "session_unregister($session_name)" then no need
> for browser closing.
> But if you don't destroy it, then it will be destroyed automatically after
> you close the browser.. this is how PHP works.
>
> Regards,
> Muhammed.
>
>
> ----- Original Message -----
> From: "Constantin Brinzoi" <aurel@irecson.ro>
> To: "Muhammed Mamedov" <muhammed@ytm.com.tr>
> Sent: Monday, December 15, 2003 4:05 PM
> Subject: Re: [PHP-DB] Another question
>
>
> > The reason is that I want to logout from the system.
> > I destroyed the session but the session is still there!!!!!
> > So I'm thinking of closing the window for good!
> >
> > Do you have any ideas how to make it work?
> >
> > Aurel.
> >
> > On Mon, 2003-12-15 at 15:25, Muhammed Mamedov wrote:
> > > Really?
> > > What is the reason for that?...
> > >
> > > Muhammed.
> > >
> > > ----- Original Message -----
> > > From: "Duane Lakoduk" <dlakoduk@mn.rr.com>
> > > To: "'Constantin Brinzoi'" <aurel@irecson.ro>;
> > > <php-db@lists.php.net>
> > > Sent: Monday, December 15, 2003 3:17 PM
> > > Subject: RE: [PHP-DB] Another question
> > >
> > >
> > > >
> > > > You can avoid the prompt when using javascript to close the window if
> you
> > > > use this:
> > > >
> > > > function closeit(){
> > > > window.opener = top;
> > > > window.close();
> > > > }
> > > >
> > > > Now, window will close without prompting.
> > > >
> > > > hth,
> > > >
> > > > Duane
> > > > > -----Original Message-----
> > > > > From: Constantin Brinzoi [mailto:aurel@irecson.ro]
> > > > > Sent: Monday, December 15, 2003 6:15 AM
> > > > > To: php-db@lists.php.net
> > > > > Subject: [PHP-DB] Another question
> > > > >
> > > > >
> > > > > Is there a php function that closes a browser window?
> > > > >
> > > > > I know there is a javascript function (window.close), but I
> > > > > can't use it
> > > > > because it complains that the window is not opened by javascript
> > > > > (window.open).
> > > > >
> > > > > I looked over the function reference but I didn't find anything
> about
> > > > > this problem.
> > > > >
> > > > > TIA
> > > > > Constantin Brinzoi
> > > > >
> > > > >
> > > >
> > > > --
> > > > PHP Database Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit:
> > > > http://www.php.net/unsub.php
> > > >
> > >
> > >
> > > ---
> > > Outgoing mail is certified Virus Free.
> > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > Version: 6.0.545 / Virus Database: 339 - Release Date: 27.11.2003
> >
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.545 / Virus Database: 339 - Release Date: 27.11.2003