|
I have a libvirt/KVM server running on Ubuntu 9.04 with a variety of instances I use for testing. I was destroying instances via virsh and occassionally, destroying one instance would take out another. Is this normal? Because it's certainly not ideal....
Started by jtimberman on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
I agree this might be a bug, but also, if you need KVM working... .
Having tried the KVM implementation in both Ubuntu and Fedora, I found the Ubuntu implementation hugely inferior to the Fedora one .
I suggest you fill out a bug report.
This looks like a bug.
|
|
I'm trying to create an authentication mechanism for my PHP Application and I'm having difficulty destroying the session. I've tried unsetting the authentication token which was previously set within the session array and destroying the session through...
Started by Jonathan Kushner on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Also, from PHP: session_destroy....
destroy();
however when I go back to the index.php page
Isn't the particular page just been requested session_start(); before calling session_destroy(); because it will only issue a warning if you don't.
|
|
Hi,
I have a function in C# 2.0 called Foo(), that returns a value of the type boolean. I am instantiating an object in the function that I am not destroying before returning the boolean value. I want to know whether is it necessary to destroy the objects...
Started by pradeeptp on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If your object holds a resource, you want to be sure to release the resource, but you don't need to (can't) destroy.
To explicitly deallocate an object, so no, you don't need to manually destroy objects.
|
Ask your Facebook Friends
|
Hi guys,
I need to resize a animated gif file without destroying the animation. Let I have a flower animated file name: flower.gif size is: 700x700, frame no: 5. I need to resize it 128x128 & 240x320 without destroy animation . Each resized animated file...
Started by riad on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Session_destroy(); //usleep(2 ); //remove resized frames from folder $dir = 'frame_output.
|
|
I want to create a jQuery dialog from HTML returned by an AJAX call. This works, but "destroying" the dialog doesn't remove the content from the div. What is the best way to completely remove the content?
Dialog creation code
$.get( 'mysite/dialogcontent...
Started by MikeWyatt on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You want to remove the div contents but leave the div itself? $(#mydiv).html("") will empty it out. .
I think calling remove() on div that the dialog is created from should be the simplest one .
|
|
This question may seem trivial, but I hope you won't ignore it.
Before destroying a TThread object it is usually necessary to wait until the thread that called the TThread.Execute() method finishes, for only then can we be sure that, for instance, the...
Started by Mariusz on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
To cleanup any objects owned by the thread class, you can perform that in the OnTerminate event, which ... .
Much of what your suggesting is already performed in the TThread.Destroy destructor, and invoking TMyThread.free will do just what your suggesting .
|
|
I'm using named System V semaphores to lock a file across all my apps on OSX and linux. Not prettiest of APIs by any definition.
It seems to work, but I can't quite figure out how to properly destroy the semaphore after everybody is done with it.
General...
Started by Eugene on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You're right, the proposal is racy, and your....
Second, keep a sem around forever.
IMHO, this is the best approach.
Several approaches:
First, if your goal is to lock a file, then use a file-locking call like flock(2) or fcntl(2)+F_SETLK , not a semaphore .
|
|
I have heard mixed responses on this topic, so what is a sure fire way to destroy a PHP session?
session_start();
if(isset($_SESSION['foo']))
unset($_SESSION['foo'];
//etc
session_destroy();
In the most simple of cases, would this sufficient to truly...
Started by Nicholas Kreidberg on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
In the one site I've made where I did use PHP sessions, I never actually destroy the session the first example):
http://us2.php.net/manual/en/function.session-destroy.php
To destroy a session['domain'], $params['secure'], isset($params[....
|
|
Okay so I'm not using any session variables, rather my code looks like this:
if (!isset($_SERVER['PHP_AUTH_USER'])) { header('WWW-Authenticate: Basic realm="Enter your Twitter username and password:"'); header('HTTP/1.0 401 Unauthorized'); echo 'Please...
Started by SkyWookie on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This is one of the biggest.
There is no way to destroy an http authentication login server side.
|
|
Hi,
When i close the browser window from the task bar the session is not getting destroyed. I could handle this on closing the browser using close(X) button or by pressing Alt+F4 using javascript. But from the task bar if i close the window how can i ...
Started by Nikesh P on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Maybe you....
The usual way is to set a timeout for the session,m so if the browser hadn't accessed the server for X minutes the session closes .
You can't - the session is on the server side and the browser does not inform the server when it is terminated .
|