[Top] [Prev] [Next] [Bottom] [Contents]

SaGetOldSessionData

Returns old session data so that any malloc'd data can be cleaned up.

Synopsis

#include "SaRnHtml.h"
void* SaGetOldSessionData SUTPROTO(());

Arguments

None.

Return Values

Pointer to the old session data or NULL when all old data has been accessed.

Description

Returns old session data so that any malloc'd data can be cleaned up. Call repeatedly in a loop until all old data has been cleaned (when the function returns NULL). This should be called in the main of the application. An alternative is to register a cleanup function for session data.

Example

void* data;
while(1)
{
	data = SaGetOldSessionData(ctx);
	if(data == NULL)
	{
		break;
	}
	else
	{
		free(data);
	}
}
Note: Do not store any data obtained with SaMalloc or stored using SaAddToFree in session data.

See Also



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.