Re: Closing Session
| From: | Richard Quadling | Date: | Fri, 01 Apr 2011 09:04:49 +0000 |
| Subject: | Re: Closing Session | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312189@lists.php.net to get a copy of this message | ||
On 31 March 2011 23:16, Ethan Rosenberg <ethros@earthlink.net> wrote:
>
>>> <snip>
>>> 127.0.0.1 localhost development subdomain.development
>>>
>>> Don't worry about it being an FQDN. Prior to checking with the
>>> router or DNS servers, all modern systems check the hosts file. Then
>>> just add a reference to each in your Apache configuration file and
>>> restart Apache. Boom. Done.
>>>
>>> --
>>> </Daniel P. Brown>
>>> Network Infrastructure Manager
>>> http://www.php.net/
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>> =========
>
> Dan -
>
> I'm a newbie...
>
> 1] What should the line in the Apache configuration file be? Just to be
> sure, the file is: /etc/apache2/apache2.conf, correct?
I don't use Apache, so hopefully someone else can answer this.
> 2] Back to the original question....how do I kill a session from the
> terminal?
You can't.
But if you can find the session ID, you could manually delete the
session file - if you are using files for your sessions.
If you are using a DB, then you'd have to write a script to kill it.
Another option would be to create a killsession.php script ...
<?php
session_start();
session_destroy();
session_close();
?>
I think that'll do the job.
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY