How to detect if session is live or expired?

Is there a call I can make to determine whether my session is still alive in a gsoap client?

The only way I see to check if a session is still alive is to check to see if all the cookie values match after each soap call. It seems like gsoap would be aware of the session being alive since the tcp_keep_alive flag is set. Is there functionality in gsoap that would allow me to check this before a soap call? Is there a callback that will inform me of session loss? Or should I just make a dummy soap method for this purpose?


You can use Genivia Plugin ,to Ckeck and create or update a session on localhost:8080 that is valid on any path:

soap->cookie_domain = "localhost:8080";
struct soap_session *session = soap_start_session(soap, NULL, NULL); 

To create a new session variable or modify an existing session variable inside that session:

soap_set_session_var(soap, "session_var_name", "session_var_value", NULL, NULL);

To access the value of that session variable:

const char *value = soap_get_session_var(soap, "session_var_name", NULL, NULL);

To delete that session variable:

soap_clr_session_var(soap, "session_var_name", NULL, NULL); 

Need Your Help

Migrate Software Deployed on Linux VM?

linux deployment clone virtual-machine

I've got some software I created deployed on a Linux VM. I'd like to deploy a second copy of the software on a second virtual machine. Ideally, I'd like to just clone the VM volume, fire up a sec...